feeds_row_toggle.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/feeds_row"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:descendantFocusability="blocksDescendants"
  7. android:paddingLeft="16dp"
  8. android:paddingRight="16dp"
  9. android:paddingTop="8dp"
  10. android:paddingBottom="8dp"
  11. android:baselineAligned="true"
  12. android:gravity="center_vertical"
  13. android:orientation="horizontal">
  14. <ImageView
  15. android:id="@+id/icon"
  16. android:layout_gravity="center_vertical"
  17. android:layout_width="21dp"
  18. android:layout_height="21dp"
  19. android:layout_weight="0"
  20. android:scaleType="fitXY"
  21. android:src="?ic_rss_box" />
  22. <TextView
  23. android:id="@+id/title"
  24. android:fontFamily="sans-serif-medium"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:gravity="center_vertical"
  28. android:layout_weight="1"
  29. android:ellipsize="end"
  30. android:paddingLeft="35dp"
  31. android:singleLine="true"
  32. android:text="Feed"
  33. android:paddingBottom="2dp"
  34. android:textColor="?feedlistTextColor"
  35. android:textSize="14sp" />
  36. <androidx.appcompat.widget.SwitchCompat
  37. android:id="@+id/row_switch"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_weight="0"
  41. android:layout_marginLeft="16dp" />
  42. </LinearLayout>