1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:background="@drawable/bg_white_top_10dp"
- android:orientation="vertical">
- <RelativeLayout
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- android:id="@+id/rl_top"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <TextView
- android:padding="14dp"
- android:id="@+id/tv_cancel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="6dp"
- android:text="取消"
- android:textColor="@color/color_666666"
- android:textSize="@dimen/dp_16" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:text=""
- android:textColor="@color/color_1a1a1a"
- android:textSize="18dp" />
- <TextView
- android:id="@+id/tv_finish"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="6dp"
- android:padding="14dp"
- android:text="确定"
- android:textColor="@color/color_2dc7aa"
- android:textSize="@dimen/dp_16" />
- </RelativeLayout>
- <View
- android:layout_marginEnd="13dp"
- android:layout_marginStart="13dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintBottom_toBottomOf="@+id/optionspicker"
- app:layout_constraintTop_toTopOf="@+id/optionspicker"
- android:background="@drawable/shape_f2f2f2_6dp"
- android:layout_width="match_parent"
- android:layout_height="44dp"/>
- <View
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/rl_top"
- android:id="@+id/view_line"
- style="@style/line_style"
- android:layout_marginEnd="13dp"
- android:layout_marginStart="13dp"/>
- <!--此部分需要完整复制过去,删减或者更改ID会导致初始化找不到内容而报空-->
- <LinearLayout
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/view_line"
- android:id="@+id/optionspicker"
- android:layout_width="match_parent"
- android:layout_height="@dimen/dp_250"
- android:gravity="center"
- android:minHeight="150dp"
- android:orientation="horizontal">
- <com.contrarywind.view.WheelView
- android:id="@+id/options1"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1" />
- <com.contrarywind.view.WheelView
- android:id="@+id/options2"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1" />
- <com.contrarywind.view.WheelView
- android:id="@+id/options3"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1" />
- </LinearLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
|