mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-01 03:55:47 +02:00
Prevent overlap of connection status for big font sizes
This commit is contained in:
parent
90e36e0065
commit
efc6144a28
@ -44,69 +44,73 @@
|
|||||||
</ListView>
|
</ListView>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<ImageView
|
<RelativeLayout
|
||||||
android:id="@+id/device_image"
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:layout_below="@id/device_item_infos_box"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_marginTop="2dp"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
|
||||||
android:clickable="true"
|
|
||||||
android:contentDescription="@string/candidate_item_device_image"
|
|
||||||
android:tooltipText="@string/candidate_item_device_image"
|
|
||||||
android:focusable="true"
|
|
||||||
android:longClickable="true"
|
|
||||||
card_view:srcCompat="@drawable/ic_device_pebble" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/device_name"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:id="@+id/device_name_layout"
|
||||||
android:layout_toEndOf="@id/device_image"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_marginEnd="48dp"
|
|
||||||
android:layout_below="@id/device_item_infos_box"
|
android:layout_below="@id/device_item_infos_box"
|
||||||
android:gravity="center"
|
android:layout_height="wrap_content">
|
||||||
android:maxLines="1"
|
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
||||||
tools:text="My Pebble Watch" />
|
|
||||||
|
|
||||||
<TextView
|
<ImageView
|
||||||
android:id="@+id/device_status"
|
android:id="@+id/device_image"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="48dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="48dp"
|
||||||
android:layout_below="@id/device_name"
|
android:layout_alignParentStart="true"
|
||||||
android:layout_toEndOf="@id/device_image"
|
android:layout_marginTop="2dp"
|
||||||
android:layout_alignParentEnd="true"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:layout_marginEnd="48dp"
|
android:clickable="true"
|
||||||
android:gravity="center"
|
android:contentDescription="@string/candidate_item_device_image"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
android:tooltipText="@string/candidate_item_device_image"
|
||||||
tools:text="@string/connecting" />
|
android:focusable="true"
|
||||||
|
android:longClickable="true"
|
||||||
|
card_view:srcCompat="@drawable/ic_device_pebble" />
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:id="@+id/device_info_image"
|
android:id="@+id/device_name"
|
||||||
android:layout_width="36dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="36dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_toEndOf="@id/device_image"
|
||||||
android:layout_below="@id/device_item_infos_box"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginEnd="48dp"
|
||||||
android:layout_marginStart="8dp"
|
android:gravity="center"
|
||||||
android:layout_marginEnd="0dp"
|
android:maxLines="1"
|
||||||
android:layout_marginTop="8dp"
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
||||||
android:clickable="true"
|
tools:text="My Pebble Watch" />
|
||||||
android:contentDescription="@string/candidate_item_device_image"
|
|
||||||
android:tooltipText="@string/candidate_item_device_image"
|
<TextView
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:id="@+id/device_status"
|
||||||
card_view:srcCompat="@drawable/ic_more_vert"
|
android:layout_width="match_parent"
|
||||||
android:focusable="true"
|
android:layout_height="wrap_content"
|
||||||
card_view:tint="@color/secondarytext" />
|
android:layout_below="@id/device_name"
|
||||||
|
android:layout_toEndOf="@id/device_image"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_marginEnd="48dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
||||||
|
tools:text="@string/connecting" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/device_info_image"
|
||||||
|
android:layout_width="36dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:layout_marginStart="8dp"
|
||||||
|
android:layout_marginEnd="0dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:contentDescription="@string/candidate_item_device_image"
|
||||||
|
android:tooltipText="@string/candidate_item_device_image"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
card_view:srcCompat="@drawable/ic_more_vert"
|
||||||
|
android:focusable="true"
|
||||||
|
card_view:tint="@color/secondarytext" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<com.google.android.flexbox.FlexboxLayout
|
<com.google.android.flexbox.FlexboxLayout
|
||||||
android:id="@+id/device_info_icons"
|
android:id="@+id/device_info_icons"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/device_image"
|
android:layout_below="@id/device_name_layout"
|
||||||
card_view:flexWrap="wrap">
|
card_view:flexWrap="wrap">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
Loading…
Reference in New Issue
Block a user