view_start_live_layout.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout 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. <TextView
  7. android:id="@+id/tv_close"
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:layout_marginStart="19dp"
  11. android:layout_marginTop="50dp"
  12. android:drawableLeft="@drawable/icon_close_live"
  13. android:text="@string/close_str"
  14. android:textColor="@color/white"
  15. android:textSize="@dimen/sp_14" />
  16. <TextView
  17. android:id="@+id/tv_start_live"
  18. android:layout_width="match_parent"
  19. android:layout_height="47dp"
  20. android:layout_gravity="bottom|center_horizontal"
  21. android:layout_marginStart="76dp"
  22. android:layout_marginEnd="76dp"
  23. android:layout_marginBottom="112dp"
  24. android:background="@drawable/shape_2dc7aa_24dp"
  25. android:gravity="center"
  26. android:text="开始视频直播"
  27. android:textColor="@color/white"
  28. android:textSize="@dimen/sp_18" />
  29. <androidx.constraintlayout.widget.ConstraintLayout
  30. android:layout_width="match_parent"
  31. android:layout_height="76dp"
  32. android:layout_gravity="bottom|center_horizontal"
  33. android:layout_marginStart="62dp"
  34. android:layout_marginEnd="62dp"
  35. android:layout_marginBottom="207dp"
  36. android:background="@drawable/shape_open_live_options"
  37. android:orientation="horizontal">
  38. <ImageView
  39. android:id="@+id/iv_reverse_camera"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_marginTop="10dp"
  43. android:src="@drawable/icon_live_reverse_camera"
  44. app:layout_constraintLeft_toLeftOf="parent"
  45. app:layout_constraintRight_toLeftOf="@+id/iv_live_beauty"
  46. app:layout_constraintTop_toTopOf="parent" />
  47. <TextView
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:includeFontPadding="false"
  51. android:paddingTop="3dp"
  52. android:text="@string/reverse_camera_str"
  53. android:textColor="@color/white"
  54. android:textSize="@dimen/sp_11"
  55. app:layout_constraintLeft_toLeftOf="@+id/iv_reverse_camera"
  56. app:layout_constraintRight_toRightOf="@+id/iv_reverse_camera"
  57. app:layout_constraintTop_toBottomOf="@+id/iv_reverse_camera" />
  58. <ImageView
  59. android:id="@+id/iv_live_beauty"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:src="@drawable/icon_live_beauty"
  63. app:layout_constraintLeft_toRightOf="@+id/iv_reverse_camera"
  64. app:layout_constraintRight_toLeftOf="@+id/iv_live_share"
  65. app:layout_constraintTop_toTopOf="@+id/iv_reverse_camera" />
  66. <TextView
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:includeFontPadding="false"
  70. android:paddingTop="3dp"
  71. android:text="@string/beauty_str"
  72. android:textColor="@color/white"
  73. android:textSize="@dimen/sp_11"
  74. app:layout_constraintLeft_toLeftOf="@+id/iv_live_beauty"
  75. app:layout_constraintRight_toRightOf="@+id/iv_live_beauty"
  76. app:layout_constraintTop_toBottomOf="@+id/iv_live_beauty" />
  77. <ImageView
  78. android:id="@+id/iv_live_share"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:src="@drawable/icon_live_share"
  82. app:layout_constraintLeft_toRightOf="@+id/iv_live_beauty"
  83. app:layout_constraintRight_toRightOf="parent"
  84. app:layout_constraintTop_toTopOf="@+id/iv_reverse_camera" />
  85. <TextView
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:includeFontPadding="false"
  89. android:paddingTop="3dp"
  90. android:text="@string/share_str"
  91. android:textColor="@color/white"
  92. android:textSize="@dimen/sp_11"
  93. app:layout_constraintLeft_toLeftOf="@+id/iv_live_share"
  94. app:layout_constraintRight_toRightOf="@+id/iv_live_share"
  95. app:layout_constraintTop_toBottomOf="@+id/iv_live_share" />
  96. </androidx.constraintlayout.widget.ConstraintLayout>
  97. </FrameLayout>