Place the icons on the correct side

This commit is contained in:
ligi 2016-12-10 13:34:06 +01:00
parent 847b19feac
commit f364aad0ba
No known key found for this signature in database
GPG key ID: 8E81894010ABF23D

View file

@ -15,10 +15,10 @@ class TimeAndNavBar constructor(context: Context, attrs: AttributeSet) : FrameLa
AppCompatDrawableManager.get().apply {
val timeDrawable = getDrawable(context, R.drawable.ic_action_today)
timeButton.setCompoundDrawablesWithIntrinsicBounds(timeDrawable, null, null, null)
timeButton.setCompoundDrawablesWithIntrinsicBounds(null, null, timeDrawable, null)
val navDrawable = getDrawable(context, R.drawable.ic_maps_place)
locationButton.setCompoundDrawablesWithIntrinsicBounds(null, null, navDrawable, null)
locationButton.setCompoundDrawablesWithIntrinsicBounds(navDrawable, null, null, null)
}
}