FairEmail/app/src/main/res/layout/item_drawer.xml

33 lines
1.5 KiB
XML
Raw Normal View History

2018-08-02 13:33:06 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-08-08 06:55:47 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-02 13:33:06 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:paddingStart="?android:attr/listPreferredItemPaddingStart">
<ImageView
android:id="@+id/ivItem"
android:layout_width="36dp"
android:layout_height="36dp"
android:gravity="center_vertical"
android:src="@drawable/baseline_mail_outline_24"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2018-08-02 13:33:06 +00:00
<TextView
android:id="@+id/tvItem"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
2018-08-08 10:22:12 +00:00
android:ellipsize="end"
2018-08-02 13:33:06 +00:00
android:gravity="center_vertical"
2018-08-08 10:22:12 +00:00
android:maxLines="1"
2018-08-02 13:33:06 +00:00
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:text="Menu item"
android:textAppearance="?android:attr/textAppearanceListItemSmall"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/ivItem"
2018-08-02 13:33:06 +00:00
app:layout_constraintTop_toTopOf="parent" />
2018-08-08 06:55:47 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>