mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 02:21:14 +01:00
fa2d954552
Wire it up and enable for Fossil Hybrid HR
163 lines
7.6 KiB
XML
163 lines
7.6 KiB
XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.AlarmDetails">
|
|
|
|
<ScrollView
|
|
android:id="@+id/scrollView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentBottom="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingBottom="@dimen/activity_vertical_margin">
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckedTextView
|
|
android:id="@+id/alarm_cb_smart_wakeup"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:drawableStart="?android:attr/listChoiceIndicatorMultiple"
|
|
android:gravity="center"
|
|
android:text="@string/alarm_smart_wakeup"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckedTextView
|
|
android:id="@+id/alarm_cb_snooze"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:drawableStart="?android:attr/listChoiceIndicatorMultiple"
|
|
android:gravity="center"
|
|
android:text="@string/alarm_snooze"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<EditText
|
|
android:id="@+id/alarm_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ems="10"
|
|
android:hint="Title"
|
|
android:inputType="text"
|
|
android:maxLength="32" />
|
|
|
|
<EditText
|
|
android:id="@+id/alarm_description"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ems="10"
|
|
android:gravity="start|top"
|
|
android:hint="Description"
|
|
android:inputType="textMultiLine"
|
|
android:maxLength="256"
|
|
android:singleLine="false" />
|
|
|
|
<TimePicker
|
|
android:id="@+id/alarm_time_picker"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="20dp"
|
|
android:scaleX="1"
|
|
android:scaleY="1" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/dowSelector"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:baselineAligned="false"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckedTextView
|
|
android:id="@+id/alarm_cb_monday"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_weight="1"
|
|
android:drawableTop="?android:attr/listChoiceIndicatorMultiple"
|
|
android:gravity="center"
|
|
android:text="@string/alarm_mon_short"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckedTextView
|
|
android:id="@+id/alarm_cb_tuesday"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_weight="1"
|
|
android:drawableTop="?android:attr/listChoiceIndicatorMultiple"
|
|
android:gravity="center"
|
|
android:text="@string/alarm_tue_short"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckedTextView
|
|
android:id="@+id/alarm_cb_wednesday"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_weight="1"
|
|
android:drawableTop="?android:attr/listChoiceIndicatorMultiple"
|
|
android:gravity="center"
|
|
android:text="@string/alarm_wed_short"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckedTextView
|
|
android:id="@+id/alarm_cb_thursday"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_weight="1"
|
|
android:drawableTop="?android:attr/listChoiceIndicatorMultiple"
|
|
android:gravity="center"
|
|
android:text="@string/alarm_thu_short"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckedTextView
|
|
android:id="@+id/alarm_cb_friday"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_weight="1"
|
|
android:drawableTop="?android:attr/listChoiceIndicatorMultiple"
|
|
android:gravity="center"
|
|
android:text="@string/alarm_fri_short"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckedTextView
|
|
android:id="@+id/alarm_cb_saturday"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_weight="1"
|
|
android:drawableTop="?android:attr/listChoiceIndicatorMultiple"
|
|
android:gravity="center"
|
|
android:text="@string/alarm_sat_short"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckedTextView
|
|
android:id="@+id/alarm_cb_sunday"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_weight="1"
|
|
android:drawableTop="?android:attr/listChoiceIndicatorMultiple"
|
|
android:gravity="center"
|
|
android:text="@string/alarm_sun_short"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</RelativeLayout>
|