preference_checkbox.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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="wrap_content"
  5. android:gravity="center_vertical"
  6. android:paddingLeft="16dp"
  7. android:paddingRight="?android:attr/scrollbarSize" android:baselineAligned="false" android:paddingStart="16dp">
  8. <RelativeLayout
  9. android:layout_width="0dp"
  10. android:layout_height="wrap_content"
  11. android:layout_marginRight="6dp"
  12. android:layout_marginTop="12dp"
  13. android:layout_marginBottom="12dp"
  14. android:layout_weight="1">
  15. <TextView android:id="@+android:id/title"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:singleLine="true"
  19. android:ellipsize="marquee"
  20. android:textColor="#666666"
  21. android:textSize="16sp"
  22. android:fadingEdge="horizontal" />
  23. <TextView android:id="@+android:id/summary"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_below="@android:id/title"
  27. android:layout_alignLeft="@android:id/title"
  28. android:textColor="#999"
  29. android:textSize="14sp"
  30. android:maxLines="4" />
  31. </RelativeLayout>
  32. <!-- Preference should place its actual preference widget here. -->
  33. <LinearLayout android:id="@+android:id/widget_frame"
  34. android:layout_width="wrap_content"
  35. android:layout_height="match_parent"
  36. android:layout_marginRight="6dp"
  37. android:gravity="center"
  38. android:orientation="vertical" android:layout_marginEnd="6dp"/>
  39. </LinearLayout>