mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2024-12-16 10:19:38 +01:00
properly handle coloring compound drawables
This commit is contained in:
parent
a6ce64909d
commit
6dead1ea80
@ -22,7 +22,6 @@ class EditTimerDialog(val activity: SimpleActivity, val timer: Timer, val callba
|
|||||||
updateAlarmTime()
|
updateAlarmTime()
|
||||||
|
|
||||||
view.apply {
|
view.apply {
|
||||||
|
|
||||||
edit_timer_initial_time.colorCompoundDrawable(textColor)
|
edit_timer_initial_time.colorCompoundDrawable(textColor)
|
||||||
edit_timer_initial_time.text = timer.seconds.getFormattedDuration()
|
edit_timer_initial_time.text = timer.seconds.getFormattedDuration()
|
||||||
edit_timer_initial_time.setTextColor(textColor)
|
edit_timer_initial_time.setTextColor(textColor)
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/edit_alarm_vibrate_holder"
|
android:layout_below="@+id/edit_alarm_vibrate_holder"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:drawableStart="@drawable/ic_bell_vector"
|
android:drawableLeft="@drawable/ic_bell_vector"
|
||||||
android:drawablePadding="@dimen/normal_margin"
|
android:drawablePadding="@dimen/normal_margin"
|
||||||
android:paddingStart="@dimen/activity_margin"
|
android:paddingStart="@dimen/activity_margin"
|
||||||
android:paddingTop="@dimen/normal_margin"
|
android:paddingTop="@dimen/normal_margin"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:drawableStart="@drawable/ic_hourglass_vector"
|
android:drawableLeft="@drawable/ic_hourglass_vector"
|
||||||
android:drawablePadding="@dimen/normal_margin"
|
android:drawablePadding="@dimen/normal_margin"
|
||||||
android:padding="@dimen/activity_margin"
|
android:padding="@dimen/activity_margin"
|
||||||
android:textSize="@dimen/bigger_text_size"
|
android:textSize="@dimen/bigger_text_size"
|
||||||
@ -58,7 +58,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:drawableStart="@drawable/ic_bell_vector"
|
android:drawableLeft="@drawable/ic_bell_vector"
|
||||||
android:drawablePadding="@dimen/normal_margin"
|
android:drawablePadding="@dimen/normal_margin"
|
||||||
android:padding="@dimen/activity_margin"
|
android:padding="@dimen/activity_margin"
|
||||||
android:textSize="@dimen/bigger_text_size"
|
android:textSize="@dimen/bigger_text_size"
|
||||||
|
Loading…
Reference in New Issue
Block a user