pref_item_source.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:background="?selectableItemBackground"
  7. android:baselineAligned="false"
  8. android:clipToPadding="false"
  9. android:gravity="center_vertical"
  10. android:minHeight="42dp"
  11. android:paddingLeft="?listPreferredItemPaddingLeft"
  12. android:paddingRight="?listPreferredItemPaddingRight"
  13. tools:ignore="RtlHardcoded">
  14. <LinearLayout
  15. android:id="@android:id/widget_frame"
  16. android:layout_width="wrap_content"
  17. android:layout_height="match_parent"
  18. android:clipToPadding="false"
  19. android:gravity="start|center_vertical"
  20. android:orientation="vertical"
  21. android:paddingLeft="16dp"
  22. android:paddingRight="16dp"/>
  23. <TextView
  24. android:id="@android:id/title"
  25. android:layout_width="0dp"
  26. android:layout_height="wrap_content"
  27. android:layout_weight="1"
  28. android:ellipsize="marquee"
  29. android:singleLine="true"
  30. android:textAppearance="?textAppearanceListItem"/>
  31. <!-- Hidden view -->
  32. <TextView
  33. android:id="@android:id/summary"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:visibility="gone" />
  37. <LinearLayout
  38. android:id="@+id/login_frame"
  39. android:layout_width="wrap_content"
  40. android:layout_height="match_parent"
  41. android:layout_marginEnd="-16dp"
  42. android:layout_marginRight="-16dp"
  43. android:clipToPadding="false"
  44. android:gravity="end|center_vertical"
  45. android:orientation="vertical"
  46. android:paddingLeft="16dp"
  47. android:paddingRight="16dp"
  48. android:visibility="gone">
  49. <ImageView
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:id="@+id/login" />
  53. </LinearLayout>
  54. </LinearLayout>