navigation_view_text.xml 1.2 KB

123456789101112131415161718192021222324252627282930
  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:background="?attr/selectableItemBackground"
  6. android:baselineAligned="false"
  7. android:focusable="true"
  8. android:paddingStart="?attr/listPreferredItemPaddingStart"
  9. android:paddingEnd="?attr/listPreferredItemPaddingEnd">
  10. <com.google.android.material.textfield.TextInputLayout
  11. android:id="@+id/nav_view_item_wrapper"
  12. style="@style/Theme.Widget.TextInputLayout.OutlinedBox.Dense"
  13. android:layout_width="0dp"
  14. android:layout_height="wrap_content"
  15. android:layout_weight="1"
  16. android:gravity="center_vertical|start">
  17. <com.google.android.material.textfield.TextInputEditText
  18. android:id="@+id/nav_view_item"
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:imeOptions="actionDone"
  22. android:inputType="text"
  23. android:maxLines="1"
  24. android:textAppearance="@style/TextAppearance.AppCompat.Body2" />
  25. </com.google.android.material.textfield.TextInputLayout>
  26. </LinearLayout>