mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2024-12-15 09:53:57 +01:00
wrap the Edit Alarm dialog in a scrollview
This commit is contained in:
parent
6001be8f17
commit
8018994881
@ -1,90 +1,95 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout
|
<ScrollView
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/edit_alarm_holder"
|
android:id="@+id/edit_alarm_scrollview"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:orientation="vertical"
|
|
||||||
android:padding="@dimen/activity_margin">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
|
||||||
android:id="@+id/edit_alarm_time"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="?attr/selectableItemBackground"
|
|
||||||
android:textSize="@dimen/alarm_text_size"
|
|
||||||
tools:text="07:00"/>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/edit_alarm_days_holder"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="@dimen/alarm_day_size"
|
|
||||||
android:layout_below="@+id/edit_alarm_time"
|
|
||||||
android:layout_marginBottom="@dimen/medium_margin"
|
|
||||||
android:layout_marginTop="@dimen/medium_margin"
|
|
||||||
android:orientation="horizontal"/>
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/edit_alarm_vibrate_holder"
|
android:id="@+id/edit_alarm_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/edit_alarm_days_holder"
|
android:padding="@dimen/activity_margin">
|
||||||
android:background="?attr/selectableItemBackground"
|
|
||||||
android:paddingBottom="@dimen/normal_margin"
|
|
||||||
android:paddingLeft="@dimen/tiny_margin"
|
|
||||||
android:paddingTop="@dimen/normal_margin">
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MySwitchCompat
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/edit_alarm_vibrate"
|
android:id="@+id/edit_alarm_time"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:textSize="@dimen/alarm_text_size"
|
||||||
|
tools:text="07:00"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/edit_alarm_days_holder"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/alarm_day_size"
|
||||||
|
android:layout_below="@+id/edit_alarm_time"
|
||||||
|
android:layout_marginBottom="@dimen/medium_margin"
|
||||||
|
android:layout_marginTop="@dimen/medium_margin"
|
||||||
|
android:orientation="horizontal"/>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/edit_alarm_vibrate_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@null"
|
android:layout_below="@+id/edit_alarm_days_holder"
|
||||||
android:clickable="false"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:drawableLeft="@drawable/ic_vibrate"
|
android:paddingBottom="@dimen/normal_margin"
|
||||||
|
android:paddingLeft="@dimen/tiny_margin"
|
||||||
|
android:paddingTop="@dimen/normal_margin">
|
||||||
|
|
||||||
|
<com.simplemobiletools.commons.views.MySwitchCompat
|
||||||
|
android:id="@+id/edit_alarm_vibrate"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@null"
|
||||||
|
android:clickable="false"
|
||||||
|
android:drawableLeft="@drawable/ic_vibrate"
|
||||||
|
android:drawablePadding="@dimen/normal_margin"
|
||||||
|
android:text="@string/vibrate"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
|
android:id="@+id/edit_alarm_sound"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@+id/edit_alarm_vibrate_holder"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:drawableLeft="@drawable/ic_bell"
|
||||||
android:drawablePadding="@dimen/normal_margin"
|
android:drawablePadding="@dimen/normal_margin"
|
||||||
android:text="@string/vibrate"/>
|
android:paddingBottom="@dimen/normal_margin"
|
||||||
|
android:paddingLeft="@dimen/tiny_margin"
|
||||||
|
android:paddingTop="@dimen/normal_margin"
|
||||||
|
android:textSize="@dimen/normal_text_size"
|
||||||
|
tools:text="Default alarm"/>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/edit_alarm_label_image"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignBottom="@+id/edit_alarm_label"
|
||||||
|
android:layout_alignTop="@+id/edit_alarm_label"
|
||||||
|
android:layout_below="@+id/edit_alarm_sound"
|
||||||
|
android:layout_marginLeft="@dimen/tiny_margin"
|
||||||
|
android:layout_marginRight="@dimen/tiny_margin"
|
||||||
|
android:scaleType="fitCenter"
|
||||||
|
android:src="@drawable/ic_label"/>
|
||||||
|
|
||||||
|
<com.simplemobiletools.commons.views.MyEditText
|
||||||
|
android:id="@+id/edit_alarm_label"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@+id/edit_alarm_sound"
|
||||||
|
android:layout_marginLeft="@dimen/medium_margin"
|
||||||
|
android:layout_marginTop="@dimen/small_margin"
|
||||||
|
android:layout_toRightOf="@+id/edit_alarm_label_image"
|
||||||
|
android:hint="@string/label"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textCursorDrawable="@null"
|
||||||
|
android:textSize="@dimen/normal_text_size"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
</ScrollView>
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
|
||||||
android:id="@+id/edit_alarm_sound"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_below="@+id/edit_alarm_vibrate_holder"
|
|
||||||
android:background="?attr/selectableItemBackground"
|
|
||||||
android:drawableLeft="@drawable/ic_bell"
|
|
||||||
android:drawablePadding="@dimen/normal_margin"
|
|
||||||
android:paddingBottom="@dimen/normal_margin"
|
|
||||||
android:paddingLeft="@dimen/tiny_margin"
|
|
||||||
android:paddingTop="@dimen/normal_margin"
|
|
||||||
android:textSize="@dimen/normal_text_size"
|
|
||||||
tools:text="Default alarm"/>
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/edit_alarm_label_image"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignBottom="@+id/edit_alarm_label"
|
|
||||||
android:layout_alignTop="@+id/edit_alarm_label"
|
|
||||||
android:layout_below="@+id/edit_alarm_sound"
|
|
||||||
android:layout_marginLeft="@dimen/tiny_margin"
|
|
||||||
android:layout_marginRight="@dimen/tiny_margin"
|
|
||||||
android:scaleType="fitCenter"
|
|
||||||
android:src="@drawable/ic_label"/>
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyEditText
|
|
||||||
android:id="@+id/edit_alarm_label"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_below="@+id/edit_alarm_sound"
|
|
||||||
android:layout_marginLeft="@dimen/medium_margin"
|
|
||||||
android:layout_marginTop="@dimen/small_margin"
|
|
||||||
android:layout_toRightOf="@+id/edit_alarm_label_image"
|
|
||||||
android:hint="@string/label"
|
|
||||||
android:maxLines="1"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:textCursorDrawable="@null"
|
|
||||||
android:textSize="@dimen/normal_text_size"/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user