Audinaut-subsonic-app-android/app/src/main/res/layout/basic_cell_item.xml

47 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<net.nullsum.audinaut.view.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackground"
android:orientation="vertical">
<net.nullsum.audinaut.view.SquareImageView
android:id="@+id/item_art"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="2dp"
android:paddingTop="4dp">
<TextView
android:id="@+id/item_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="marquee"
android:paddingLeft="@dimen/Card.TextLeftPadding"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:textColorPrimary" />
<ImageView
android:id="@+id/item_more"
style="@style/MoreButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
app:srcCompat="?attr/download_none" />
</LinearLayout>
</LinearLayout>
</net.nullsum.audinaut.view.CardView>