couple widget UI adjustments
This commit is contained in:
parent
291220404e
commit
94599b9dd7
|
@ -59,8 +59,7 @@ class MyWidgetDateTimeProvider : AppWidgetProvider() {
|
|||
setVisibleIf(R.id.widget_time_am_pm, !use24HourFormat)
|
||||
|
||||
val nextAlarm = getFormattedNextAlarm(context)
|
||||
setVisibleIf(R.id.widget_next_alarm, nextAlarm.isNotEmpty())
|
||||
setVisibleIf(R.id.widget_next_alarm_image, nextAlarm.isNotEmpty())
|
||||
setVisibleIf(R.id.widget_alarm_holder, nextAlarm.isNotEmpty())
|
||||
setText(R.id.widget_next_alarm, nextAlarm)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
android:id="@+id/widget_date_time_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="@dimen/small_margin">
|
||||
android:paddingBottom="@dimen/tiny_margin">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/widget_time_holder"
|
||||
|
@ -17,6 +17,7 @@
|
|||
android:id="@+id/widget_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/widget_time_height"
|
||||
android:layout_marginTop="-2dp"
|
||||
android:includeFontPadding="false"
|
||||
android:textSize="@dimen/widget_time_text_size"
|
||||
tools:text="00:00"/>
|
||||
|
@ -46,7 +47,7 @@
|
|||
<RelativeLayout
|
||||
android:id="@+id/widget_alarm_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="@dimen/widget_alarm_icon_size"
|
||||
android:layout_below="@+id/widget_date"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
|
@ -60,6 +61,7 @@
|
|||
android:id="@+id/widget_next_alarm"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/widget_next_alarm_image"
|
||||
android:includeFontPadding="false"
|
||||
android:paddingLeft="@dimen/small_margin"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
android:id="@+id/widget_date_time_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="@dimen/small_margin">
|
||||
android:paddingBottom="@dimen/tiny_margin">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/widget_time_holder"
|
||||
|
@ -17,6 +17,7 @@
|
|||
android:id="@+id/widget_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/widget_time_height"
|
||||
android:layout_marginTop="-2dp"
|
||||
android:includeFontPadding="false"
|
||||
android:shadowColor="@android:color/black"
|
||||
android:shadowDy="1"
|
||||
|
@ -55,7 +56,7 @@
|
|||
<RelativeLayout
|
||||
android:id="@+id/widget_alarm_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="@dimen/widget_alarm_icon_size"
|
||||
android:layout_below="@+id/widget_date"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
|
@ -69,6 +70,7 @@
|
|||
android:id="@+id/widget_next_alarm"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/widget_next_alarm_image"
|
||||
android:includeFontPadding="false"
|
||||
android:paddingLeft="@dimen/small_margin"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<dimen name="stopwatch_button_size">64dp</dimen>
|
||||
<dimen name="lap_time_size">80dp</dimen>
|
||||
<dimen name="widget_alarm_icon_size">18dp</dimen>
|
||||
<dimen name="widget_time_height">50dp</dimen>
|
||||
<dimen name="widget_time_height">48dp</dimen>
|
||||
<dimen name="min_widget_height">30dp</dimen>
|
||||
<dimen name="min_widget_width">180dp</dimen>
|
||||
<dimen name="min_widget_resize_width">110dp</dimen>
|
||||
|
@ -13,5 +13,5 @@
|
|||
<dimen name="clock_text_size_smaller">60sp</dimen>
|
||||
<dimen name="alarm_text_size">46sp</dimen>
|
||||
<dimen name="stopwatch_text_size">60sp</dimen>
|
||||
<dimen name="widget_time_text_size">50sp</dimen>
|
||||
<dimen name="widget_time_text_size">48sp</dimen>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue