salesperformance_adapter_item.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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="match_parent"
  5. android:background="@drawable/bg_list_item"
  6. android:orientation="vertical" >
  7. <RelativeLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:layout_marginBottom="15dp"
  11. android:layout_marginTop="15dp" >
  12. <TextView
  13. android:id="@+id/tv_objectname"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:layout_alignParentLeft="true"
  17. android:layout_marginLeft="20dp"
  18. android:textColor="@color/black" />
  19. <TextView
  20. android:id="@+id/tv_sort"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_alignParentRight="true"
  24. android:layout_marginRight="20dp"
  25. android:text="1"
  26. android:textColor="@color/black" />
  27. <TextView
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_toLeftOf="@+id/tv_sort"
  31. android:text="排行:"
  32. android:textColor="@color/black" />
  33. <LinearLayout
  34. android:id="@+id/l1"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:layout_below="@+id/tv_objectname"
  38. android:layout_marginTop="15dp"
  39. android:orientation="horizontal" >
  40. <LinearLayout
  41. android:layout_width="0dp"
  42. android:layout_height="wrap_content"
  43. android:layout_weight="1.5" >
  44. <TextView
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_marginLeft="20dp"
  48. android:text="客户数量:" />
  49. <TextView
  50. android:id="@+id/tv_object_customer_count"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:text="" />
  54. </LinearLayout>
  55. <LinearLayout
  56. android:layout_width="0dp"
  57. android:layout_height="wrap_content"
  58. android:layout_weight="1" >
  59. <TextView
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:text="单数:" />
  63. <TextView
  64. android:id="@+id/tv_object_count"
  65. android:layout_width="wrap_content"
  66. android:layout_height="wrap_content"
  67. android:text="" />
  68. </LinearLayout>
  69. <RelativeLayout
  70. android:layout_width="0dp"
  71. android:layout_height="wrap_content"
  72. android:layout_weight="1.5" >
  73. <TextView
  74. android:id="@+id/tv_proportion"
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. android:layout_alignParentRight="true"
  78. android:layout_marginRight="20dp"
  79. >
  80. </TextView>
  81. <TextView
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_alignTop="@+id/tv_proportion"
  85. android:layout_toLeftOf="@+id/tv_proportion"
  86. android:text="比重:" />
  87. </RelativeLayout>
  88. </LinearLayout>
  89. <TextView
  90. android:id="@+id/tv_amount"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_alignParentLeft="true"
  94. android:layout_below="@+id/l1"
  95. android:layout_marginLeft="20dp"
  96. android:layout_marginTop="15dp"
  97. >
  98. </TextView>
  99. <TextView
  100. android:id="@+id/tv_average_value"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:layout_alignParentRight="true"
  104. android:layout_below="@+id/l1"
  105. android:layout_marginRight="20dp"
  106. android:layout_marginTop="15dp"
  107. >
  108. </TextView>
  109. <TextView
  110. android:layout_width="wrap_content"
  111. android:layout_height="wrap_content"
  112. android:layout_alignTop="@+id/tv_average_value"
  113. android:layout_toLeftOf="@+id/tv_average_value"
  114. android:text="客户平均值:" />
  115. </RelativeLayout>
  116. <View style="@style/thin_fill_line" />
  117. </LinearLayout>