设置2列的 .txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <LinearLayout
  2. android:layout_width="match_parent"
  3. android:layout_height="@dimen/vs_50"
  4. android:layout_marginBottom="@dimen/vs_10"
  5. android:focusable="false"
  6. android:orientation="horizontal">
  7. <LinearLayout
  8. android:id="@+id/llHomeApi"
  9. android:layout_width="@dimen/vs_0"
  10. android:layout_height="match_parent"
  11. android:layout_marginStart="@dimen/vs_5"
  12. android:layout_marginLeft="@dimen/vs_5"
  13. android:layout_marginEnd="@dimen/vs_5"
  14. android:layout_marginRight="@dimen/vs_5"
  15. android:layout_weight="1"
  16. android:background="@drawable/shape_setting_model_focus"
  17. android:focusable="true"
  18. android:gravity="center_vertical"
  19. android:orientation="horizontal"
  20. android:paddingLeft="@dimen/vs_20"
  21. android:paddingRight="@dimen/vs_20">
  22. <TextView
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:text="首页数据源"
  26. android:textColor="@android:color/white"
  27. android:textSize="@dimen/ts_24" />
  28. <Space
  29. android:layout_width="0dp"
  30. android:layout_height="wrap_content"
  31. android:layout_weight="1" />
  32. <TextView
  33. android:id="@+id/tvHomeApi"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:ellipsize="middle"
  37. android:singleLine="true"
  38. android:textColor="@android:color/white"
  39. android:textSize="@dimen/ts_24" />
  40. <TextView
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_marginStart="@dimen/vs_10"
  44. android:layout_marginLeft="@dimen/vs_10"
  45. android:text=">"
  46. android:textColor="@android:color/white"
  47. android:textSize="@dimen/ts_24" />
  48. </LinearLayout>
  49. <LinearLayout
  50. android:id="@+id/llBackgroundPlay"
  51. android:layout_width="@dimen/vs_0"
  52. android:layout_height="match_parent"
  53. android:layout_marginStart="@dimen/vs_5"
  54. android:layout_marginLeft="@dimen/vs_5"
  55. android:layout_marginEnd="@dimen/vs_5"
  56. android:layout_marginRight="@dimen/vs_5"
  57. android:layout_weight="1"
  58. android:background="@drawable/shape_setting_model_focus"
  59. android:focusable="true"
  60. android:gravity="center_vertical"
  61. android:orientation="horizontal"
  62. android:paddingLeft="@dimen/vs_20"
  63. android:paddingRight="@dimen/vs_20">
  64. <TextView
  65. android:layout_width="wrap_content"
  66. android:layout_height="wrap_content"
  67. android:text="后台"
  68. android:textColor="@android:color/white"
  69. android:textSize="@dimen/ts_24" />
  70. <Space
  71. android:layout_width="0dp"
  72. android:layout_height="wrap_content"
  73. android:layout_weight="1" />
  74. <TextView
  75. android:id="@+id/tvBackgroundPlayType"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:textColor="@android:color/white"
  79. android:textSize="@dimen/ts_24" />
  80. <TextView
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_marginStart="@dimen/vs_10"
  84. android:layout_marginLeft="@dimen/vs_10"
  85. android:text=">"
  86. android:textColor="@android:color/white"
  87. android:textSize="@dimen/ts_24" />
  88. </LinearLayout>
  89. </LinearLayout>