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

49 lines
2.1 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-08 10:13:15 +00:00
android:background="?attr/activatableItemBackground"
2019-03-07 20:33:29 +00:00
android:foreground="?attr/selectableItemBackground"
android:padding="6dp">
2019-01-06 09:23:57 +00:00
2019-03-07 20:33:29 +00:00
<ImageView
2019-05-13 18:54:02 +00:00
android:id="@+id/ivImage"
2019-09-26 16:58:38 +00:00
android:layout_width="0dp"
2019-03-07 20:33:29 +00:00
android:layout_height="wrap_content"
android:adjustViewBounds="true"
2019-04-18 12:34:09 +00:00
android:contentDescription="@string/title_legend_show_images"
2019-03-25 18:02:24 +00:00
android:scaleType="centerInside"
2019-03-07 20:33:29 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@mipmap/ic_launcher" />
2019-03-07 20:33:29 +00:00
<TextView
2019-05-13 18:54:02 +00:00
android:id="@+id/tvCaption"
2019-03-07 20:33:29 +00:00
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"
2019-05-13 18:54:02 +00:00
app:layout_constraintTop_toBottomOf="@id/ivImage" />
<TextView
android:id="@+id/tvType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="image/jpg"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvCaption" />
2019-03-07 20:33:29 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>