<?xml version="1.0" encoding="utf-8"?>
|
<FrameLayout 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:background="?attr/fullscreenBackgroundColor"
|
android:theme="@style/ThemeOverlay.FirstApp.FullscreenContainer"
|
tools:context=".ui.reminderOther.ReminderOtherAddActivity2">
|
|
<!-- The primary full-screen view. This can be replaced with whatever view
|
is needed to present your content, e.g. VideoView, SurfaceView,
|
TextureView, etc. -->
|
<TextView
|
android:id="@+id/fullscreen_content"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:gravity="center"
|
android:keepScreenOn="true"
|
android:text="@string/dummy_content"
|
android:textColor="?attr/fullscreenTextColor"
|
android:textSize="50sp"
|
android:textStyle="bold" />
|
|
<!-- This FrameLayout insets its children based on system windows using
|
android:fitsSystemWindows. -->
|
<FrameLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:fitsSystemWindows="true">
|
|
<LinearLayout
|
android:id="@+id/fullscreen_content_controls"
|
style="@style/Widget.Theme.FirstApp.ButtonBar.Fullscreen"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="bottom|center_horizontal"
|
android:orientation="horizontal"
|
tools:ignore="UselessParent">
|
|
<EditText
|
android:id="@+id/et_special_day_name"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:hint="请输入纪念日名称"
|
android:inputType="text"
|
android:ems="10"
|
android:background="?attr/editTextBackground"/>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="日子类型"
|
android:textSize="16sp"
|
android:paddingTop="16dp"/>
|
|
<RadioGroup
|
android:id="@+id/rg_day_type"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:paddingBottom="16dp">
|
|
<RadioButton
|
android:id="@+id/rb_anniversary"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="纪念日"/>
|
|
<!-- Add more RadioButton items as needed -->
|
|
</RadioGroup>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="日期"
|
android:textSize="16sp"
|
android:paddingTop="16dp"/>
|
|
<DatePicker
|
android:id="@+id/dp_date"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"/>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="重复周期"
|
android:textSize="16sp"
|
android:paddingTop="16dp"/>
|
|
<!-- <Spinner-->
|
<!-- android:id="@+id/sp_repeat_cycle"-->
|
<!-- android:layout_width="match_parent"-->
|
<!-- android:layout_height="wrap_content"-->
|
<!-- android:entries="@array/repeat_cycles"-->
|
<!-- android:layout_marginBottom="16dp"/>-->
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="定期提醒"
|
android:textSize="16sp"
|
android:paddingTop="16dp"/>
|
|
<!-- <Spinner-->
|
<!-- android:id="@+id/sp_regular_reminder"-->
|
<!-- android:layout_width="match_parent"-->
|
<!-- android:layout_height="wrap_content"-->
|
<!-- android:entries="@array/regular_reminders"-->
|
<!-- android:layout_marginBottom="16dp"/>-->
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="每天提醒"
|
android:textSize="16sp"
|
android:paddingTop="16dp"/>
|
|
<Switch
|
android:id="@+id/sw_daily_reminder"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="end"
|
android:checked="false"
|
android:layout_marginBottom="16dp"/>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="时间精确到秒"
|
android:textSize="16sp"
|
android:paddingTop="16dp"/>
|
|
<Switch
|
android:id="@+id/sw_time_to_second"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="end"
|
android:checked="false"
|
android:layout_marginBottom="16dp"/>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="置于首页顶部"
|
android:textSize="16sp"
|
android:paddingTop="16dp"/>
|
|
<Switch
|
android:id="@+id/sw_top_of_homepage"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="end"
|
android:checked="false"
|
android:layout_marginBottom="16dp"/>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="包含起始日 (+1天)"
|
android:textSize="16sp"
|
android:paddingTop="16dp"/>
|
|
<Switch
|
android:id="@+id/sw_include_start_date"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="end"
|
android:checked="false"
|
android:layout_marginBottom="16dp"/>
|
|
<Button
|
android:id="@+id/btn_save"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="保存"
|
android:layout_marginTop="16dp"/>
|
|
|
<Button
|
android:id="@+id/dummy_button"
|
style="?android:attr/buttonBarButtonStyle"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@string/dummy_button" />
|
|
</LinearLayout>
|
</FrameLayout>
|
|
</FrameLayout>
|