layout_dialogx_miui_dark.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.kongzue.dialogx.util.views.DialogXBaseRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/box_root"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/black40"
  7. android:orientation="vertical">
  8. <RelativeLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent">
  11. <com.kongzue.dialogx.util.views.MaxRelativeLayout
  12. android:id="@+id/bkg"
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:layout_alignParentBottom="true"
  16. android:layout_centerHorizontal="true"
  17. android:background="@drawable/rect_dialogx_miui_bkg_night">
  18. <LinearLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:clickable="true"
  22. android:orientation="vertical">
  23. <TextView
  24. android:id="@+id/txt_dialog_title"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_gravity="center_horizontal"
  28. android:gravity="center"
  29. android:paddingLeft="20dp"
  30. android:paddingTop="25dp"
  31. android:paddingRight="20dp"
  32. android:text="Title"
  33. android:textColor="@color/dialogxMIUITextDark"
  34. android:textSize="18dp" />
  35. <com.kongzue.dialogx.util.views.DialogScrollView
  36. android:id="@+id/scrollView"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:layout_weight="1"
  40. android:overScrollMode="never"
  41. android:scrollbarSize="7dp"
  42. android:scrollbarThumbVertical="@drawable/scrollbar_dialogx_vertical_dark"
  43. android:scrollbars="vertical">
  44. <LinearLayout
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:orientation="vertical">
  48. <TextView
  49. android:id="@+id/txt_dialog_tip"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_gravity="center_horizontal"
  53. android:layout_marginLeft="20dp"
  54. android:layout_marginRight="20dp"
  55. android:gravity="start"
  56. android:paddingTop="10dp"
  57. android:paddingBottom="15dp"
  58. android:text="This is content text."
  59. android:textColor="@color/dialogxMIUITextDark"
  60. android:textSize="16dp" />
  61. <RelativeLayout
  62. android:id="@+id/box_custom"
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:visibility="gone" />
  66. <FrameLayout
  67. android:id="@+id/box_list"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content" />
  70. <EditText
  71. android:id="@+id/txt_input"
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content"
  74. android:layout_gravity="center_horizontal"
  75. android:layout_marginLeft="20dp"
  76. android:layout_marginTop="10dp"
  77. android:layout_marginRight="20dp"
  78. android:layout_marginBottom="15dp"
  79. android:background="@drawable/editbox_dialogx_miui_night"
  80. android:inputType="text"
  81. android:maxLines="1"
  82. android:padding="15dp"
  83. android:scrollbars="vertical"
  84. android:text=""
  85. android:textColor="@color/white"
  86. android:textSize="16dp"
  87. android:theme="@style/DialogXCompatThemeLight"
  88. android:visibility="gone" />
  89. </LinearLayout>
  90. </com.kongzue.dialogx.util.views.DialogScrollView>
  91. <LinearLayout
  92. android:id="@+id/box_button"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:layout_gravity="center_horizontal"
  96. android:layout_marginLeft="15dp"
  97. android:layout_marginRight="15dp"
  98. android:layout_marginBottom="20dp"
  99. android:gravity="right|center_vertical"
  100. android:orientation="horizontal">
  101. <TextView
  102. android:id="@+id/btn_selectNegative"
  103. android:layout_width="match_parent"
  104. android:layout_height="50dp"
  105. android:layout_marginLeft="6dp"
  106. android:layout_marginTop="5dp"
  107. android:layout_marginRight="6dp"
  108. android:layout_marginBottom="5dp"
  109. android:layout_weight="1"
  110. android:background="@drawable/button_dialogx_miui_gray_night"
  111. android:clickable="true"
  112. android:gravity="center"
  113. android:text="Cancel"
  114. android:textColor="@color/dialogxMIUITextDark"
  115. android:textSize="16dp" />
  116. <TextView
  117. android:id="@+id/btn_selectOther"
  118. android:layout_width="match_parent"
  119. android:layout_height="50dp"
  120. android:layout_marginLeft="6dp"
  121. android:layout_marginTop="5dp"
  122. android:layout_marginRight="6dp"
  123. android:layout_marginBottom="5dp"
  124. android:layout_weight="1"
  125. android:background="@drawable/button_dialogx_miui_gray_night"
  126. android:clickable="true"
  127. android:gravity="center"
  128. android:text="Other"
  129. android:textColor="@color/dialogxMIUITextDark"
  130. android:textSize="16dp"
  131. android:visibility="gone" />
  132. <TextView
  133. android:id="@+id/btn_selectPositive"
  134. android:layout_width="match_parent"
  135. android:layout_height="50dp"
  136. android:layout_marginLeft="6dp"
  137. android:layout_marginTop="5dp"
  138. android:layout_marginRight="6dp"
  139. android:layout_marginBottom="5dp"
  140. android:layout_weight="1"
  141. android:background="@drawable/button_dialogx_miui_blue_night"
  142. android:clickable="true"
  143. android:gravity="center"
  144. android:text="OK"
  145. android:textColor="@color/dialogxMIUITextDark"
  146. android:textSize="16dp" />
  147. </LinearLayout>
  148. </LinearLayout>
  149. </com.kongzue.dialogx.util.views.MaxRelativeLayout>
  150. </RelativeLayout>
  151. </com.kongzue.dialogx.util.views.DialogXBaseRelativeLayout>