view_preference_tip.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. app:cardBackgroundColor="?attr/colorSurfaceContainer"
  7. app:strokeWidth="0dp"
  8. android:layout_marginHorizontal="16dp"
  9. android:layout_marginVertical="8dp">
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:gravity="center_vertical"
  14. android:orientation="vertical"
  15. android:paddingHorizontal="12dp"
  16. android:paddingVertical="12dp">
  17. <ImageView
  18. android:layout_width="24dp"
  19. android:layout_height="24dp"
  20. android:layout_marginBottom="8dp"
  21. android:src="@drawable/ic_cfg_about" />
  22. <TextView
  23. android:id="@+id/tip_text"
  24. android:layout_width="match_parent"
  25. android:layout_height="0dp"
  26. android:layout_weight="1"
  27. android:text="@string/about"
  28. android:textSize="12sp" />
  29. </LinearLayout>
  30. </com.google.android.material.card.MaterialCardView>