12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?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="50dp">
- <TextView
- android:id="@+id/tv_cancel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="17dp"
- android:text="取消"
- android:textColor="@color/color_999999"
- 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="17dp"
- android:padding="8dp"
- android:text="确定"
- android:textColor="@color/color_1cacf1"
- 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>
|