salesman_multiple_item.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@drawable/bg_list_item"
  8. android:orientation="vertical" >
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:orientation="horizontal" >
  13. <CheckBox
  14. android:id="@+id/salesmanCheck"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:layout_marginLeft="10dp"
  18. android:button="@drawable/checkbox"
  19. android:checked="false"
  20. android:focusable="false"
  21. android:focusableInTouchMode="false"
  22. android:layout_gravity="center_vertical" />
  23. <LinearLayout
  24. android:layout_width="0dp"
  25. android:layout_weight="1"
  26. android:layout_height="wrap_content"
  27. android:orientation="vertical" >
  28. <LinearLayout
  29. android:layout_width="fill_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_marginTop="10dp"
  32. android:orientation="horizontal" >
  33. <TextView
  34. android:layout_width="70dp"
  35. android:layout_height="wrap_content"
  36. android:layout_marginLeft="8dp"
  37. android:gravity="center"
  38. android:text="员工名称:"
  39. android:textColor="@color/black"
  40. android:textSize="@dimen/textsize_14" />
  41. <TextView
  42. android:id="@+id/StaffName"
  43. android:layout_width="fill_parent"
  44. android:layout_height="wrap_content"
  45. android:layout_marginLeft="8dp"
  46. android:gravity="center_vertical"
  47. android:textColor="@color/black"
  48. android:textSize="@dimen/textsize_14" />
  49. </LinearLayout>
  50. <LinearLayout
  51. android:layout_width="fill_parent"
  52. android:layout_height="wrap_content"
  53. android:layout_marginTop="10dp"
  54. android:orientation="horizontal" >
  55. <TextView
  56. android:layout_width="70dp"
  57. android:layout_height="wrap_content"
  58. android:layout_marginLeft="8dp"
  59. android:gravity="center"
  60. android:text="所属部门:"
  61. android:textColor="@color/black"
  62. android:textSize="@dimen/textsize_14" />
  63. <TextView
  64. android:id="@+id/OrganizationName"
  65. android:layout_width="fill_parent"
  66. android:layout_height="wrap_content"
  67. android:layout_marginLeft="8dp"
  68. android:gravity="center_vertical"
  69. android:textColor="@color/black"
  70. android:textSize="@dimen/textsize_14" />
  71. </LinearLayout>
  72. <LinearLayout
  73. android:layout_width="fill_parent"
  74. android:layout_height="wrap_content"
  75. android:layout_marginTop="10dp"
  76. android:orientation="horizontal" >
  77. <TextView
  78. android:layout_width="70dp"
  79. android:layout_height="wrap_content"
  80. android:layout_marginLeft="8dp"
  81. android:gravity="center"
  82. android:text="员工编码:"
  83. android:textColor="@color/black"
  84. android:textSize="@dimen/textsize_14" />
  85. <TextView
  86. android:id="@+id/StaffCode"
  87. android:layout_width="fill_parent"
  88. android:layout_height="wrap_content"
  89. android:layout_marginLeft="8dp"
  90. android:gravity="center_vertical"
  91. android:textColor="@color/black"
  92. android:textSize="@dimen/textsize_14" />
  93. </LinearLayout>
  94. <LinearLayout
  95. android:layout_width="fill_parent"
  96. android:layout_height="wrap_content"
  97. android:layout_marginTop="10dp"
  98. android:orientation="horizontal" >
  99. <TextView
  100. android:layout_width="70dp"
  101. android:layout_height="wrap_content"
  102. android:gravity="center"
  103. android:layout_marginLeft="8dp"
  104. android:text="职 务:"
  105. android:textColor="@color/black"
  106. android:textSize="@dimen/textsize_14" />
  107. <TextView
  108. android:id="@+id/dutiesTxt"
  109. android:layout_width="fill_parent"
  110. android:layout_height="wrap_content"
  111. android:layout_marginLeft="8dp"
  112. android:gravity="center_vertical"
  113. android:textColor="@color/black"
  114. android:textSize="@dimen/textsize_14" />
  115. </LinearLayout>
  116. <LinearLayout
  117. android:layout_width="fill_parent"
  118. android:layout_height="wrap_content"
  119. android:layout_marginTop="10dp"
  120. android:orientation="horizontal" >
  121. <TextView
  122. android:layout_width="70dp"
  123. android:layout_height="wrap_content"
  124. android:layout_marginLeft="8dp"
  125. android:layout_marginTop="3dp"
  126. android:gravity="center"
  127. android:text="主业务员:"
  128. android:textColor="@color/black"
  129. android:textSize="@dimen/textsize_14" />
  130. <com.dongkesoft.ibossmini.view.SwitchButton
  131. android:id="@+id/mainSalesmanBtn"
  132. android:layout_width="45dp"
  133. android:layout_height="25dp"
  134. android:layout_marginLeft="8dp"
  135. app:borderWidth="0.8dp"
  136. app:offBorderColor="@color/light_gray"
  137. app:offColor="@color/light_gray"
  138. app:onColor="@color/red"
  139. app:spotColor="@color/common_white"
  140. />
  141. </LinearLayout>
  142. </LinearLayout>
  143. </LinearLayout>
  144. <View
  145. android:layout_width="match_parent"
  146. android:layout_marginTop="10dp"
  147. android:layout_height="1dp"
  148. android:background="@color/EBEBEB" />
  149. </LinearLayout>