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

37 lines
1.6 KiB
XML
Raw Normal View History

2019-01-06 09:23:57 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-03-07 20:33:29 +00:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2019-01-06 09:23:57 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
2019-03-07 20:33:29 +00:00
android:layout_height="wrap_content">
2019-01-06 09:23:57 +00:00
2019-03-07 20:33:29 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/clItem"
2019-01-06 09:23:57 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-07 20:33:29 +00:00
android:background="?attr/drawableItemBackground"
android:foreground="?attr/selectableItemBackground"
android:padding="6dp">
2019-01-06 09:23:57 +00:00
2019-03-07 20:33:29 +00:00
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@mipmap/ic_launcher"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/caption"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="Launcher icon"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/image" />
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>