mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-09 17:35:54 +01:00
60 lines
2.1 KiB
XML
60 lines
2.1 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"
|
|
android:padding="8dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/device_image"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_alignParentLeft="true" />
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toRightOf="@+id/device_image"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="8dp">
|
|
|
|
<TextView
|
|
android:id="@+id/device_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@+id/statuswrapper"
|
|
android:layout_toLeftOf="@+id/device_info"
|
|
android:singleLine="true"
|
|
android:textColor="@color/primarytext"
|
|
android:typeface="sans" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/statuswrapper"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/device_name"
|
|
android:orientation="vertical"
|
|
android:paddingTop="3dp">
|
|
|
|
<TextView
|
|
android:id="@+id/device_status"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/primarytext"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/device_info"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBaseline="@+id/device_name"
|
|
android:layout_alignParentRight="true"
|
|
android:gravity="right"
|
|
android:textColor="@color/secondarytext"
|
|
android:textSize="12sp" />
|
|
|
|
</RelativeLayout>
|
|
</RelativeLayout> |