custom_setting_alert.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@drawable/department_layer">
  6. <LinearLayout
  7. android:layout_width="350dp"
  8. android:layout_height="380dp"
  9. android:layout_centerInParent="true"
  10. android:background="@drawable/department_layer"
  11. android:orientation="vertical">
  12. <RelativeLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="56dp"
  15. android:layout_margin="2dp"
  16. android:background="@color/commonColor">
  17. <TextView
  18. android:id="@+id/tvTitle"
  19. android:layout_width="wrap_content"
  20. android:layout_height="match_parent"
  21. android:layout_marginLeft="16dp"
  22. android:layout_marginRight="8dp"
  23. android:gravity="center"
  24. android:text="@string/setting"
  25. android:textColor="@color/white"
  26. android:textSize="20sp"
  27. android:textStyle="bold" />
  28. </RelativeLayout>
  29. <LinearLayout
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. android:orientation="vertical">
  33. <LinearLayout
  34. android:layout_width="match_parent"
  35. android:layout_height="match_parent"
  36. android:layout_weight="1"
  37. android:focusable="true"
  38. android:focusableInTouchMode="true"
  39. android:orientation="vertical">
  40. <RadioGroup
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:padding="8dp">
  44. <RadioButton
  45. android:id="@+id/inPatientRid"
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:padding="8dp"
  49. android:textSize="16sp"
  50. android:text="@string/hospitalization" />
  51. <RadioButton
  52. android:id="@+id/outPatientRid"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:padding="8dp"
  56. android:textSize="16sp"
  57. android:text="@string/outPatient" />
  58. <RadioButton
  59. android:id="@+id/erPatientRid"
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:padding="8dp"
  63. android:textSize="16sp"
  64. android:text="@string/emergency" />
  65. <RadioButton
  66. android:id="@+id/opPatientRid"
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:padding="8dp"
  70. android:textSize="16sp"
  71. android:text="@string/surgery" />
  72. <RadioButton
  73. android:id="@+id/examRid"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:padding="8dp"
  77. android:textSize="16sp"
  78. android:text="@string/search" />
  79. </RadioGroup>
  80. </LinearLayout>
  81. <RelativeLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="match_parent"
  84. android:background="@xml/border_top"
  85. android:layout_margin="2dp"
  86. android:layout_weight="3.4">
  87. <LinearLayout
  88. android:id="@+id/btnLayout"
  89. android:layout_width="match_parent"
  90. android:layout_height="match_parent"
  91. android:orientation="horizontal"
  92. android:visibility="visible">
  93. <Button
  94. android:id="@+id/btnConfirm"
  95. style="?android:attr/borderlessButtonStyle"
  96. android:layout_width="match_parent"
  97. android:layout_height="match_parent"
  98. android:layout_marginLeft="48dp"
  99. android:layout_marginTop="16dp"
  100. android:layout_marginRight="10dp"
  101. android:layout_marginBottom="16dp"
  102. android:layout_weight="1"
  103. android:background="@drawable/shape2"
  104. android:textColor="@color/white"
  105. android:textSize="16sp"
  106. android:text="@string/confirm"/>
  107. <Button
  108. android:id="@+id/btnCancel"
  109. style="?android:attr/borderlessButtonStyle"
  110. android:layout_width="match_parent"
  111. android:layout_height="match_parent"
  112. android:layout_marginLeft="10dp"
  113. android:layout_marginTop="16dp"
  114. android:layout_marginRight="48dp"
  115. android:layout_marginBottom="16dp"
  116. android:layout_weight="1"
  117. android:text="@string/cancel"
  118. android:textColor="@color/white"
  119. android:textSize="16sp"
  120. android:background="@drawable/shape2" />
  121. </LinearLayout>
  122. </RelativeLayout>
  123. </LinearLayout>
  124. </LinearLayout>
  125. </RelativeLayout>