pickerview_beat_symbol_layout.xml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:background="@drawable/bg_white_top_10dp"
  7. android:orientation="vertical">
  8. <RelativeLayout
  9. app:layout_constraintLeft_toLeftOf="parent"
  10. app:layout_constraintTop_toTopOf="parent"
  11. android:id="@+id/rl_top"
  12. android:layout_width="match_parent"
  13. android:layout_height="50dp">
  14. <TextView
  15. android:id="@+id/tv_cancel"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_centerVertical="true"
  19. android:layout_marginLeft="17dp"
  20. android:text="取消"
  21. android:textColor="@color/color_999999"
  22. android:textSize="@dimen/dp_16" />
  23. <TextView
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_centerInParent="true"
  27. android:text="节拍"
  28. android:textColor="@color/color_1a1a1a"
  29. android:textSize="18dp" />
  30. <TextView
  31. android:id="@+id/tv_finish"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_alignParentRight="true"
  35. android:layout_centerVertical="true"
  36. android:layout_marginRight="17dp"
  37. android:padding="8dp"
  38. android:text="确定"
  39. android:textColor="@color/color_1cacf1"
  40. android:textSize="@dimen/dp_16" />
  41. </RelativeLayout>
  42. <View
  43. android:layout_marginEnd="13dp"
  44. android:layout_marginStart="13dp"
  45. app:layout_constraintLeft_toLeftOf="parent"
  46. app:layout_constraintBottom_toBottomOf="@+id/optionspicker"
  47. app:layout_constraintTop_toTopOf="@+id/optionspicker"
  48. android:background="@drawable/shape_f2f2f2_6dp"
  49. android:layout_width="match_parent"
  50. android:layout_height="44dp"/>
  51. <View
  52. app:layout_constraintLeft_toLeftOf="parent"
  53. app:layout_constraintTop_toBottomOf="@+id/rl_top"
  54. android:id="@+id/view_line"
  55. style="@style/line_style"
  56. android:layout_marginEnd="13dp"
  57. android:layout_marginStart="13dp"/>
  58. <!--此部分需要完整复制过去,删减或者更改ID会导致初始化找不到内容而报空-->
  59. <LinearLayout
  60. app:layout_constraintLeft_toLeftOf="parent"
  61. app:layout_constraintTop_toBottomOf="@+id/view_line"
  62. android:id="@+id/optionspicker"
  63. android:layout_width="match_parent"
  64. android:layout_height="@dimen/dp_250"
  65. android:gravity="center"
  66. android:minHeight="150dp"
  67. android:orientation="horizontal">
  68. <com.contrarywind.view.WheelView
  69. android:id="@+id/options1"
  70. android:layout_width="0dp"
  71. android:layout_height="match_parent"
  72. android:layout_weight="1" />
  73. <com.contrarywind.view.WheelView
  74. android:id="@+id/options2"
  75. android:layout_width="0dp"
  76. android:layout_height="match_parent"
  77. android:layout_weight="1" />
  78. <com.contrarywind.view.WheelView
  79. android:id="@+id/options3"
  80. android:layout_width="0dp"
  81. android:layout_height="match_parent"
  82. android:layout_weight="1" />
  83. </LinearLayout>
  84. </androidx.constraintlayout.widget.ConstraintLayout>