custom_setting_alert.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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="360dp"
  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:layout_marginBottom="4dp"
  33. android:layout_marginLeft="4dp"
  34. android:layout_marginRight="4dp"
  35. android:orientation="vertical">
  36. <LinearLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:layout_weight="1"
  40. android:focusable="true"
  41. android:focusableInTouchMode="true"
  42. android:orientation="vertical">
  43. <RadioGroup
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:padding="8dp">
  47. <RadioButton
  48. android:id="@+id/inPatientRid"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:padding="8dp"
  52. android:textSize="16sp"
  53. android:text="@string/hospitalization" />
  54. <RadioButton
  55. android:id="@+id/outPatientRid"
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content"
  58. android:padding="8dp"
  59. android:textSize="16sp"
  60. android:text="@string/outPatient" />
  61. <RadioButton
  62. android:id="@+id/erPatientRid"
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:padding="8dp"
  66. android:textSize="16sp"
  67. android:text="@string/emergency" />
  68. <RadioButton
  69. android:id="@+id/opPatientRid"
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:padding="8dp"
  73. android:textSize="16sp"
  74. android:text="@string/surgery" />
  75. <RadioButton
  76. android:id="@+id/searchRid"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:padding="8dp"
  80. android:textSize="16sp"
  81. android:text="@string/search" />
  82. </RadioGroup>
  83. </LinearLayout>
  84. <RelativeLayout
  85. android:layout_width="match_parent"
  86. android:layout_height="match_parent"
  87. android:background="@xml/border_top"
  88. android:layout_margin="2dp"
  89. android:layout_weight="3">
  90. <LinearLayout
  91. android:id="@+id/btnLayout"
  92. android:layout_width="match_parent"
  93. android:layout_height="match_parent"
  94. android:orientation="horizontal"
  95. android:visibility="visible">
  96. <Button
  97. android:id="@+id/btnConfirm"
  98. style="?android:attr/borderlessButtonStyle"
  99. android:layout_width="match_parent"
  100. android:layout_height="match_parent"
  101. android:layout_marginLeft="48dp"
  102. android:layout_marginTop="16dp"
  103. android:layout_marginRight="10dp"
  104. android:layout_marginBottom="16dp"
  105. android:layout_weight="1"
  106. android:background="@drawable/shape2"
  107. android:textColor="@color/white"
  108. android:textSize="16sp"
  109. android:text="@string/save"/>
  110. <Button
  111. android:id="@+id/btnCancel"
  112. style="?android:attr/borderlessButtonStyle"
  113. android:layout_width="match_parent"
  114. android:layout_height="match_parent"
  115. android:layout_marginLeft="10dp"
  116. android:layout_marginTop="16dp"
  117. android:layout_marginRight="48dp"
  118. android:layout_marginBottom="16dp"
  119. android:layout_weight="1"
  120. android:text="@string/cancel"
  121. android:textColor="@color/white"
  122. android:textSize="16sp"
  123. android:background="@drawable/shape2" />
  124. </LinearLayout>
  125. </RelativeLayout>
  126. </LinearLayout>
  127. </LinearLayout>
  128. </RelativeLayout>