Added item divider to alarm item layout
This commit is contained in:
parent
20b5ff2d8a
commit
d17f514bd3
@ -1,71 +1,83 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout
|
<LinearLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="@dimen/item_padding_top"
|
android:orientation="vertical"
|
||||||
android:paddingStart="@dimen/item_padding_start"
|
|
||||||
android:paddingEnd="@dimen/item_padding_end"
|
|
||||||
android:paddingBottom="@dimen/item_padding_bottom"
|
|
||||||
android:background="?selectableItemBackground">
|
android:background="?selectableItemBackground">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/time_layout"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="@dimen/item_margin_between_elements">
|
android:paddingTop="@dimen/item_padding_top"
|
||||||
|
android:paddingStart="@dimen/item_padding_start"
|
||||||
|
android:paddingEnd="@dimen/item_padding_end">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/time_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="@dimen/item_margin_between_elements">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/time"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="1:20"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat"
|
||||||
|
android:textSize="@dimen/alarm_time_text_size"/>
|
||||||
|
|
||||||
|
<android.support.v7.widget.SwitchCompat
|
||||||
|
android:id="@+id/on_off_switch"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/time"
|
android:id="@+id/label"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="1:20"
|
android:textAppearance="?textAppearanceListItem"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat"
|
android:textStyle="bold"
|
||||||
android:textSize="@dimen/alarm_time_text_size"/>
|
android:text="Label"
|
||||||
|
android:layout_below="@id/time_layout"
|
||||||
|
android:layout_marginBottom="@dimen/item_margin_between_elements"/>
|
||||||
|
|
||||||
<android.support.v7.widget.SwitchCompat
|
<com.philliphsu.clock2.alarms.AlarmCountdown
|
||||||
android:id="@+id/on_off_switch"
|
android:id="@+id/countdown"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:textAppearance="?textAppearanceListItem"
|
||||||
android:layout_centerVertical="true"/>
|
android:text="in %dh %dm"
|
||||||
|
android:layout_marginStart="4dp"
|
||||||
|
android:layout_below="@id/time_layout"
|
||||||
|
android:layout_toEndOf="@id/label"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/recurring_days"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Mon, Tue, Wed, Thu, Fri, Sat, Sun"
|
||||||
|
android:layout_below="@id/label"
|
||||||
|
android:layout_marginBottom="@dimen/item_margin_between_elements"/>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/dismiss"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@id/recurring_days"
|
||||||
|
android:text="@string/dismiss_now"
|
||||||
|
style="@style/Widget.AppCompat.Button.Colored"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<TextView
|
<View
|
||||||
android:id="@+id/label"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="1dp"
|
||||||
android:layout_height="wrap_content"
|
android:background="?android:listDivider"
|
||||||
android:textAppearance="?textAppearanceListItem"
|
android:layout_marginTop="@dimen/item_margin_between_elements"/>
|
||||||
android:textStyle="bold"
|
|
||||||
android:text="Label"
|
|
||||||
android:layout_below="@id/time_layout"
|
|
||||||
android:layout_marginBottom="@dimen/item_margin_between_elements"/>
|
|
||||||
|
|
||||||
<com.philliphsu.clock2.alarms.AlarmCountdown
|
</LinearLayout>
|
||||||
android:id="@+id/countdown"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?textAppearanceListItem"
|
|
||||||
android:text="in %dh %dm"
|
|
||||||
android:layout_marginStart="4dp"
|
|
||||||
android:layout_below="@id/time_layout"
|
|
||||||
android:layout_toEndOf="@id/label"/>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/recurring_days"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Mon, Tue, Wed, Thu, Fri, Sat, Sun"
|
|
||||||
android:layout_below="@id/label"
|
|
||||||
android:layout_marginBottom="@dimen/item_margin_between_elements"/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/dismiss"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_below="@id/recurring_days"
|
|
||||||
android:text="@string/dismiss_now"
|
|
||||||
style="@style/Widget.AppCompat.Button.Colored"/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user