dialog_normal_layout.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:background="@drawable/bg_round_white"
  7. android:layout_margin="@dimen/dp_10"
  8. android:paddingTop="@dimen/dp_10"
  9. android:paddingBottom="@dimen/dp_10"
  10. android:orientation="vertical"
  11. tools:ignore="MissingConstraints">
  12. <TextView
  13. android:id="@+id/title"
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:gravity="center_horizontal"
  17. android:padding="5dp"
  18. android:text="标题提示"
  19. android:background="@color/white"
  20. android:textColor="@color/black_3d3d3d"
  21. android:textSize="16sp" />
  22. <View
  23. android:layout_width="match_parent"
  24. android:layout_height="1dp"
  25. android:background="#ccc"/>
  26. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="35dp"
  29. android:layout_marginTop="20dp"
  30. android:layout_marginBottom="20dp"
  31. android:layout_marginLeft="20dp"
  32. android:layout_marginRight="20dp"
  33. android:orientation="horizontal">
  34. <TextView
  35. android:id="@+id/tv_content_label"
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:gravity="center_horizontal"
  39. android:padding="5dp"
  40. android:text="FX"
  41. android:background="@color/white"
  42. android:textColor="@color/black_3d3d3d"
  43. android:layout_marginEnd="10dp"
  44. android:textSize="16sp" />
  45. <EditText
  46. android:id="@+id/et_content"
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:layout_gravity="center_horizontal"
  50. android:padding="@dimen/dp_10"
  51. android:hint="请输入"
  52. android:lineSpacingExtra="3dp"
  53. android:background="@drawable/bg_round_edit_background"
  54. android:textCursorDrawable="@drawable/color_cursor"
  55. android:cursorVisible="true"
  56. android:textSize="14sp"
  57. android:inputType="number"
  58. android:text=""
  59. android:textColor="@color/black_3d3d3d"/>
  60. <ImageButton
  61. style="@style/ClearImg"
  62. android:id="@+id/ib_clear"
  63. />
  64. </LinearLayout>
  65. <LinearLayout
  66. android:layout_width="match_parent"
  67. android:layout_height="35dp"
  68. android:layout_marginLeft="20dp"
  69. android:layout_marginRight="20dp"
  70. android:orientation="horizontal">
  71. <TextView
  72. android:id="@+id/cancel"
  73. android:layout_width="25dp"
  74. android:layout_height="match_parent"
  75. android:background="@drawable/bg_round_left_white"
  76. android:layout_weight="1.0"
  77. android:gravity="center"
  78. android:text="取消"
  79. android:textSize="12sp"
  80. android:textColor="@color/black_3d3d3d"/>
  81. <View
  82. android:layout_width="40dp"
  83. android:layout_height="match_parent"
  84. />
  85. <TextView
  86. android:id="@+id/submit"
  87. android:layout_width="25dp"
  88. android:layout_height="match_parent"
  89. android:background="@drawable/bg_round_right_white"
  90. android:gravity="center"
  91. android:layout_weight="1.0"
  92. android:text="确定"
  93. android:textSize="12sp"
  94. android:textColor="#fff"/>
  95. </LinearLayout>
  96. </LinearLayout>