1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-12 11:47:46 +01:00
Gadgetbridge/app/src/main/res/layout/item_with_details.xml

67 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/activatedBackgroundIndicator">
<ImageView
android:id="@+id/item_preview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="false"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:contentDescription="Item preview" />
<ImageView
android:id="@+id/item_image"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_below="@+id/item_preview"
android:contentDescription="@string/candidate_item_device_image"
android:padding="8dp" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toEndOf="@+id/item_image"
android:layout_below="@+id/item_preview"
android:orientation="vertical"
android:paddingStart="8dp"
android:paddingEnd="8dp">
<TextView
android:id="@+id/item_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:scrollHorizontally="false"
android:text="Item Name"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/item_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="start"
android:text="Item Description" />
<TextView
android:id="@+id/item_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="end"
android:text=""
android:textColor="@color/design_default_color_error" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>