1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 10:05:49 +01:00

Rework device item layout

This commit is contained in:
Lem Dulfo 2016-04-10 19:47:35 +08:00 committed by cpfeiffer
parent eba1ee6dc6
commit e5726075a4

View File

@ -17,7 +17,7 @@
<GridLayout
android:layout_gravity="fill_horizontal"
android:background="?android:attr/activatedBackgroundIndicator"
android:columnCount="5"
android:columnCount="3"
android:paddingBottom="2dp"
android:paddingTop="3dp">
@ -29,19 +29,6 @@
android:typeface="sans"
tools:text="My Pebble Watch" />
<ProgressBar
android:id="@+id/device_busy_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_rowSpan="2"
android:indeterminate="true"
android:visibility="gone"
tools:visibility="visible" />
<android.support.v4.widget.Space
android:layout_width="wrap_content"
android:layout_rowSpan="2" />
<TextView
android:id="@+id/battery_label"
android:layout_width="wrap_content"
@ -63,7 +50,6 @@
android:scaleType="centerInside"
android:src="@drawable/ic_information_outline_grey600_24dp" />
<TextView
android:id="@+id/device_status"
android:layout_width="wrap_content"
@ -84,8 +70,20 @@
android:textColor="@color/secondarytext"
android:textStyle="bold"
tools:text="100% CHG" />
<ProgressBar
android:id="@+id/device_busy_indicator"
android:layout_width="140dp"
android:layout_height="4dp"
android:layout_rowSpan="1"
android:indeterminate="true"
android:visibility="visible"
style="@android:style/Widget.ProgressBar.Horizontal"
tools:visibility="visible" />
</GridLayout>
<ListView
android:id="@+id/device_item_infos"
android:layout_width="match_parent"