preference_warning.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <LinearLayout android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. android:layout_marginTop="6dip"
  9. android:layout_marginBottom="6dip"
  10. android:minHeight="?android:attr/listPreferredItemHeight"
  11. android:background="@drawable/panel_warning_bg"
  12. android:paddingEnd="?android:attr/scrollbarSize">
  13. <RelativeLayout
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:layout_marginStart="15dip"
  17. android:layout_marginEnd="6dip"
  18. android:layout_marginTop="6dip"
  19. android:layout_marginBottom="6dip"
  20. android:layout_weight="1">
  21. <!--suppress AndroidDomInspection -->
  22. <TextView android:id="@+android:id/title"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:singleLine="true"
  26. android:textAppearance="?android:attr/textAppearanceLarge"
  27. android:ellipsize="marquee"
  28. android:fadingEdge="horizontal" />
  29. <!--suppress AndroidDomInspection -->
  30. <TextView android:id="@+android:id/summary"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_below="@android:id/title"
  34. android:layout_alignStart="@android:id/title"
  35. android:textAppearance="?android:attr/textAppearanceSmall"
  36. android:textColor="#FFFFFFFF"
  37. android:maxLines="4" />
  38. </RelativeLayout>
  39. </LinearLayout>
  40. </LinearLayout>