properly handle coloring compound drawables

This commit is contained in:
tibbi 2021-11-19 16:59:37 +01:00
parent a6ce64909d
commit 6dead1ea80
3 changed files with 3 additions and 4 deletions

View File

@ -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)

View File

@ -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"

View File

@ -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"