activity_wheel.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <androidx.constraintlayout.widget.ConstraintLayout
  7. android:layout_width="273dp"
  8. android:layout_height="209dp"
  9. android:background="@drawable/wheel_backround"
  10. app:layout_constraintBottom_toBottomOf="parent"
  11. app:layout_constraintLeft_toLeftOf="parent"
  12. app:layout_constraintRight_toRightOf="parent"
  13. app:layout_constraintTop_toTopOf="parent">
  14. <TextView
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:layout_marginTop="24dp"
  18. android:layout_marginBottom="7dp"
  19. android:text="自定义停止播放时间"
  20. android:textColor="#ff333333"
  21. android:textSize="16sp"
  22. app:layout_constraintLeft_toLeftOf="parent"
  23. app:layout_constraintRight_toRightOf="parent"
  24. app:layout_constraintTop_toTopOf="parent" />
  25. <androidx.constraintlayout.widget.Guideline
  26. android:id="@+id/gl1"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:orientation="horizontal"
  30. app:layout_constraintGuide_begin="53dp" />
  31. <androidx.constraintlayout.widget.Guideline
  32. android:id="@+id/gl2"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:orientation="horizontal"
  36. app:layout_constraintGuide_end="61dp" />
  37. <LinearLayout
  38. android:layout_width="wrap_content"
  39. android:layout_height="0dp"
  40. android:layout_marginRight="21dp"
  41. app:layout_constraintBottom_toTopOf="@id/gl2"
  42. app:layout_constraintRight_toLeftOf="@id/gl3"
  43. app:layout_constraintTop_toBottomOf="@id/gl1">
  44. <com.tencent.liteav.demo.superplayer.ui.view.WheelView
  45. android:id="@+id/layout_wheel"
  46. android:layout_width="62dp"
  47. android:layout_height="match_parent" />
  48. </LinearLayout>
  49. <LinearLayout
  50. android:layout_width="wrap_content"
  51. android:layout_height="0dp"
  52. android:layout_marginLeft="21dp"
  53. app:layout_constraintBottom_toTopOf="@id/gl2"
  54. app:layout_constraintLeft_toRightOf="@id/gl3"
  55. app:layout_constraintTop_toBottomOf="@id/gl1">
  56. <com.tencent.liteav.demo.superplayer.ui.view.WheelView
  57. android:id="@+id/layout_wheel2"
  58. android:layout_width="62dp"
  59. android:layout_height="match_parent" />
  60. </LinearLayout>
  61. <TextView
  62. android:id="@+id/wheel_cancel"
  63. android:layout_width="85dp"
  64. android:layout_height="34dp"
  65. android:layout_marginTop="5dp"
  66. android:layout_marginRight="11dp"
  67. android:background="@drawable/wheel_cancel_button"
  68. android:gravity="center"
  69. android:text="取消"
  70. android:textAlignment="center"
  71. android:textColor="#FF999999"
  72. android:textSize="14sp"
  73. app:layout_constraintRight_toLeftOf="@id/gl3"
  74. app:layout_constraintTop_toBottomOf="@id/gl2" />
  75. <androidx.constraintlayout.widget.Guideline
  76. android:id="@+id/gl3"
  77. android:layout_width="1dp"
  78. android:layout_height="wrap_content"
  79. android:orientation="vertical"
  80. app:layout_constraintGuide_percent="0.5" />
  81. <TextView
  82. android:id="@+id/wheel_confirm"
  83. android:layout_width="85dp"
  84. android:layout_height="34dp"
  85. android:layout_marginLeft="11dp"
  86. android:layout_marginTop="5dp"
  87. android:background="@drawable/wheel_certain_button"
  88. android:gravity="center"
  89. android:text="确定"
  90. android:textAlignment="center"
  91. android:textColor="@android:color/white"
  92. android:textSize="14sp"
  93. app:layout_constraintLeft_toRightOf="@id/gl3"
  94. app:layout_constraintTop_toBottomOf="@id/gl2" />
  95. <ImageView
  96. android:id="@+id/wheel_close"
  97. android:layout_width="17dp"
  98. android:layout_height="17dp"
  99. android:src="@mipmap/dialog_close"
  100. android:layout_marginTop="13dp"
  101. android:layout_marginRight="12dp"
  102. app:layout_constraintRight_toRightOf="parent"
  103. app:layout_constraintTop_toTopOf="parent" />
  104. </androidx.constraintlayout.widget.ConstraintLayout>
  105. </androidx.constraintlayout.widget.ConstraintLayout>