custom_dialogs.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:background="@color/white"
  6. android:orientation="vertical"
  7. android:paddingLeft="10dp"
  8. android:paddingRight="10dp">
  9. <TextView
  10. android:layout_width="match_parent"
  11. android:layout_height="45dp"
  12. android:gravity="center"
  13. android:text="化学品查询"
  14. android:textColor="@color/black" />
  15. <RelativeLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="45dp"
  18. android:layout_marginTop="10dp">
  19. <TextView
  20. android:id="@+id/tv_1"
  21. android:layout_width="wrap_content"
  22. android:layout_height="match_parent"
  23. android:gravity="center"
  24. android:text="名 称:"
  25. android:textColor="@color/black" />
  26. <EditText
  27. android:id="@+id/ed_name"
  28. android:layout_width="match_parent"
  29. android:layout_height="match_parent"
  30. android:layout_toRightOf="@+id/tv_1"
  31. android:hint="请输入化学品名称"
  32. android:textColor="@color/black"
  33. android:textSize="14sp" />
  34. </RelativeLayout>
  35. <RelativeLayout
  36. android:layout_width="match_parent"
  37. android:layout_height="45dp"
  38. android:layout_marginTop="10dp">
  39. <TextView
  40. android:id="@+id/tv_2"
  41. android:layout_width="wrap_content"
  42. android:layout_height="match_parent"
  43. android:gravity="center"
  44. android:text="CAS号:"
  45. android:textColor="@color/black" />
  46. <EditText
  47. android:id="@+id/cas_no"
  48. android:layout_width="match_parent"
  49. android:layout_height="match_parent"
  50. android:layout_toRightOf="@+id/tv_2"
  51. android:hint="请输入CAS号:"
  52. android:textColor="@color/black"
  53. android:textSize="14sp" />
  54. </RelativeLayout>
  55. <LinearLayout
  56. android:layout_width="match_parent"
  57. android:layout_height="45dp"
  58. android:layout_marginBottom="10dp">
  59. <Button
  60. android:id="@+id/but_cancel"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_weight="1"
  64. android:text="取 消" />
  65. <Button
  66. android:id="@+id/but_affirm"
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:layout_weight="1"
  70. android:text="确 定" />
  71. </LinearLayout>
  72. </LinearLayout>