2015-06-24 20:14:08 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-04-08 18:44:15 +02:00
|
|
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-04-03 21:09:35 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2015-06-24 20:14:08 +02:00
|
|
|
|
|
|
|
|
2017-04-08 18:44:15 +02:00
|
|
|
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/card_view"
|
2015-06-24 20:14:08 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:layout_margin="8dp"
|
|
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
|
|
card_view:cardCornerRadius="4dp"
|
|
|
|
card_view:cardElevation="4dp"
|
|
|
|
card_view:contentPadding="8dp">
|
2015-06-24 20:14:08 +02:00
|
|
|
|
2017-04-08 18:44:15 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2015-06-24 20:14:08 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:layout_margin="16dp">
|
2015-06-24 20:14:08 +02:00
|
|
|
|
2017-04-08 18:44:15 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/alarm_item_time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentTop="true"
|
2017-04-09 16:01:48 +02:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:layout_marginEnd="0dp"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:text="00:00"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/alarm_smart_wakeup"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBaseline="@+id/alarm_item_time"
|
|
|
|
android:layout_toEndOf="@+id/alarm_item_time"
|
|
|
|
android:text="(Smart)"
|
|
|
|
android:visibility="invisible" />
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:id="@+id/alarm_item_toggle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
2017-04-09 16:01:48 +02:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_margin="8dp" />
|
2017-04-08 18:44:15 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/dowSelector"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/alarm_item_time"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckedTextView
|
|
|
|
android:id="@+id/alarm_item_monday"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_weight="1"
|
2017-04-09 16:01:48 +02:00
|
|
|
android:textColor="@color/alarm_dow"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/alarm_mon_short"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckedTextView
|
|
|
|
android:id="@+id/alarm_item_tuesday"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_weight="1"
|
2017-04-09 16:01:48 +02:00
|
|
|
android:textColor="@color/alarm_dow"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/alarm_tue_short"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckedTextView
|
|
|
|
android:id="@+id/alarm_item_wednesday"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_weight="1"
|
2017-04-09 16:01:48 +02:00
|
|
|
android:textColor="@color/alarm_dow"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/alarm_wed_short"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckedTextView
|
|
|
|
android:id="@+id/alarm_item_thursday"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_weight="1"
|
2017-04-09 16:01:48 +02:00
|
|
|
android:textColor="@color/alarm_dow"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/alarm_thu_short"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckedTextView
|
|
|
|
android:id="@+id/alarm_item_friday"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_weight="1"
|
2017-04-09 16:01:48 +02:00
|
|
|
android:textColor="@color/alarm_dow"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/alarm_fri_short"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckedTextView
|
|
|
|
android:id="@+id/alarm_item_saturday"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_weight="1"
|
2017-04-09 16:01:48 +02:00
|
|
|
android:textColor="@color/alarm_dow"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/alarm_sat_short"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckedTextView
|
|
|
|
android:id="@+id/alarm_item_sunday"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_weight="1"
|
2017-04-09 16:01:48 +02:00
|
|
|
android:textColor="@color/alarm_dow"
|
2017-04-08 18:44:15 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/alarm_sun_short"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
2015-06-24 20:14:08 +02:00
|
|
|
|
2017-04-08 18:44:15 +02:00
|
|
|
</LinearLayout>
|
2015-06-24 20:14:08 +02:00
|
|
|
|
2017-04-08 18:44:15 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
</android.support.v7.widget.CardView>
|
2015-06-24 20:14:08 +02:00
|
|
|
|
2017-04-08 18:44:15 +02:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|