mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-04-03 21:31:01 +02:00
replacing ic_clock icon with ic_alarm at showing alarm below date
This commit is contained in:
parent
8f53517edf
commit
c73d714e7b
@ -80,7 +80,7 @@ class MyWidgetDateTimeProvider : AppWidgetProvider() {
|
|||||||
val bitmap = getMultiplyColoredBitmap(R.drawable.ic_clock_shadowed, widgetTextColor, context)
|
val bitmap = getMultiplyColoredBitmap(R.drawable.ic_clock_shadowed, widgetTextColor, context)
|
||||||
setImageViewBitmap(R.id.widget_next_alarm_image, bitmap)
|
setImageViewBitmap(R.id.widget_next_alarm_image, bitmap)
|
||||||
} else {
|
} else {
|
||||||
setImageViewBitmap(R.id.widget_next_alarm_image, context.resources.getColoredBitmap(R.drawable.ic_clock_vector, widgetTextColor))
|
setImageViewBitmap(R.id.widget_next_alarm_image, context.resources.getColoredBitmap(R.drawable.ic_alarm_vector, widgetTextColor))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/clock_fragment"
|
android:id="@+id/clock_fragment"
|
||||||
@ -19,7 +18,7 @@
|
|||||||
android:layout_marginTop="@dimen/activity_margin"
|
android:layout_marginTop="@dimen/activity_margin"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:textSize="@dimen/clock_text_size"
|
android:textSize="@dimen/clock_text_size"
|
||||||
tools:text="00:00:00"/>
|
tools:text="00:00:00" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/clock_date"
|
android:id="@+id/clock_date"
|
||||||
@ -28,7 +27,7 @@
|
|||||||
android:layout_below="@+id/clock_time"
|
android:layout_below="@+id/clock_time"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:textSize="@dimen/big_text_size"
|
android:textSize="@dimen/big_text_size"
|
||||||
tools:text="Mon, 1 January"/>
|
tools:text="Mon, 1 January" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/clock_alarm"
|
android:id="@+id/clock_alarm"
|
||||||
@ -37,11 +36,11 @@
|
|||||||
android:layout_below="@+id/clock_date"
|
android:layout_below="@+id/clock_date"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:layout_marginTop="@dimen/medium_margin"
|
android:layout_marginTop="@dimen/medium_margin"
|
||||||
android:drawableLeft="@drawable/ic_clock_vector"
|
android:drawableLeft="@drawable/ic_alarm_vector"
|
||||||
android:drawablePadding="@dimen/small_margin"
|
android:drawablePadding="@dimen/small_margin"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:textSize="@dimen/big_text_size"
|
android:textSize="@dimen/big_text_size"
|
||||||
tools:text="Thu, 8:00"/>
|
tools:text="Thu, 8:00" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyRecyclerView
|
<com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
android:id="@+id/time_zones_list"
|
android:id="@+id/time_zones_list"
|
||||||
@ -53,7 +52,7 @@
|
|||||||
android:overScrollMode="ifContentScrolls"
|
android:overScrollMode="ifContentScrolls"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager"/>
|
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
@ -63,6 +62,6 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|end"
|
android:layout_gravity="bottom|end"
|
||||||
android:layout_margin="@dimen/activity_margin"
|
android:layout_margin="@dimen/activity_margin"
|
||||||
android:src="@drawable/ic_plus_vector"/>
|
android:src="@drawable/ic_plus_vector" />
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user