ananas/app/src/main/res/layout/collection_item.xml
Jarne Demeulemeester 8ccc6a0ef7
Add basic Toolbar
2021-06-17 18:53:52 +02:00

35 lines
No EOL
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="collection"
type="org.jellyfin.sdk.model.api.BaseItemDto" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="12dp"
android:layout_marginBottom="32dp"
android:orientation="vertical">
<com.google.android.material.imageview.ShapeableImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:adjustViewBounds="true"
app:collectionImage="@{collection}"
app:shapeAppearanceOverlay="@style/roundedImageView" />
<TextView
style="@style/text_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@{collection.name}"
tools:text="Movies" />
</LinearLayout>
</layout>