Files
midi-android/moduleUtil/src/main/res/layout/dialog_double_time_picker.xml
2025-08-26 19:34:44 +08:00

93 lines
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TabHost
android:id="@+id/tabHost"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- 开始时间 -->
<LinearLayout
android:id="@+id/start_time_tab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="10dp">
<com.xscm.moduleutil.widget.WheelDatePicker
android:id="@+id/wheel_start_date"
android:layout_width="wrap_content"
android:layout_height="180dp" />
<com.xscm.moduleutil.widget.WheelTimePicker
android:id="@+id/wheel_start_time"
android:layout_width="wrap_content"
android:layout_height="180dp" />
</LinearLayout>
<!-- 结束时间 -->
<LinearLayout
android:id="@+id/end_time_tab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="10dp">
<com.xscm.moduleutil.widget.WheelDatePicker
android:id="@+id/wheel_end_date"
android:layout_width="wrap_content"
android:layout_height="180dp" />
<com.xscm.moduleutil.widget.WheelTimePicker
android:id="@+id/wheel_end_time"
android:layout_width="wrap_content"
android:layout_height="180dp" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
<!-- 按钮区域 -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="16dp">
<Button
android:id="@+id/btn_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerInParent="true"
android:text="取消" />
<Button
android:id="@+id/btn_sure"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerInParent="true"
android:text="确定" />
</RelativeLayout>
</LinearLayout>