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

39 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-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"
android:contentDescription="@null"
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"
2020-09-10 17:22:54 +00:00
app:srcCompat="@mipmap/ic_launcher_grey" />
2019-03-07 20:33:29 +00:00
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
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"
2019-10-27 15:52:40 +00:00
android:text="@string/app_name"
2019-03-07 20:33:29 +00:00
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" />
2019-03-07 20:33:29 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>