common_listitem_dir.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout android:id="@+id/nnf_item_container"
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="?android:listPreferredItemHeight"
  7. android:background="?selectableItemBackground"
  8. android:focusable="true"
  9. android:minHeight="?android:listPreferredItemHeight"
  10. android:nextFocusLeft="@+id/nnf_button_cancel"
  11. android:nextFocusRight="@+id/nnf_button_ok"
  12. android:orientation="horizontal">
  13. <ImageView
  14. android:id="@+id/item_icon"
  15. android:layout_width="?android:listPreferredItemHeight"
  16. android:layout_height="?android:listPreferredItemHeight"
  17. android:adjustViewBounds="true"
  18. android:scaleType="center"
  19. android:src="@drawable/nnf_ic_file_folder"
  20. android:tint="?attr/colorAccent"
  21. android:visibility="visible"
  22. tools:ignore="ContentDescription"/>
  23. <TextView
  24. android:id="@android:id/text1"
  25. android:layout_width="0dp"
  26. android:layout_height="match_parent"
  27. android:layout_weight="1"
  28. android:ellipsize="end"
  29. android:gravity="center_vertical"
  30. android:maxLines="1"
  31. android:padding="8dp"
  32. android:singleLine="true"
  33. android:text="@string/nnf_name"/>
  34. </LinearLayout>