设置1列的.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <LinearLayout
  2. android:id="@+id/llHomeApi"
  3. android:layout_width="match_parent"
  4. android:layout_height="@dimen/vs_60"
  5. android:layout_marginBottom="@dimen/vs_10"
  6. android:background="@drawable/shape_setting_model_focus"
  7. android:focusable="true"
  8. android:gravity="center_vertical"
  9. android:orientation="horizontal"
  10. android:paddingLeft="@dimen/vs_20"
  11. android:paddingRight="@dimen/vs_20">
  12. <TextView
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:text="首页数据源"
  16. android:textColor="@android:color/white"
  17. android:textSize="@dimen/ts_24" />
  18. <Space
  19. android:layout_width="0dp"
  20. android:layout_height="wrap_content"
  21. android:layout_weight="1" />
  22. <TextView
  23. android:id="@+id/tvHomeApi"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:ellipsize="middle"
  27. android:singleLine="true"
  28. android:textColor="@android:color/white"
  29. android:textSize="@dimen/ts_24" />
  30. <TextView
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_marginStart="@dimen/vs_10"
  34. android:layout_marginLeft="@dimen/vs_10"
  35. android:text=">"
  36. android:textColor="@android:color/white"
  37. android:textSize="@dimen/ts_30" />
  38. </LinearLayout>