diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/listitem_device.xml | 62 |
1 files changed, 5 insertions, 57 deletions
diff --git a/app/src/main/res/layout/listitem_device.xml b/app/src/main/res/layout/listitem_device.xml index 2d6ef91..0904d94 100644 --- a/app/src/main/res/layout/listitem_device.xml +++ b/app/src/main/res/layout/listitem_device.xml @@ -33,14 +33,15 @@ <LinearLayout android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:id="@+id/spacer" + android:layout_alignParentEnd="true" android:layout_alignParentTop="true" - android:layout_alignParentEnd="true"> + android:layout_centerInParent="true"> <Button android:layout_width="wrap_content" - android:layout_height="fill_parent" + android:layout_height="match_parent" android:text="@string/connect" android:id="@+id/button_connect" /> @@ -50,61 +51,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/device_spinner" - /> + android:visibility="gone"/> </LinearLayout> - <!-- - <TextView - android:id="@+id/device_name" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="24sp" - android:layout_alignParentTop="true" - android:layout_marginTop="0dp" - android:layout_toStartOf="@+id/spacer"/> - - <TextView - android:id="@+id/device_address" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="12sp" - android:layout_below="@+id/device_name" - android:layout_alignParentStart="true" - android:layout_toStartOf="@+id/spacer"/> - - <TextView - android:id="@+id/device_rssi" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="12sp" - android:layout_below="@+id/device_address" - android:layout_alignParentStart="true" - android:layout_toStartOf="@+id/spacer"/> - - <Space - android:id="@+id/spacer" - android:layout_width="2dp" - android:layout_height="fill_parent" - android:layout_toStartOf="@id/button_connect"/> - - <Button - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/connect" - android:id="@+id/button_connect" - android:layout_alignParentTop="true" - android:layout_toStartOf="@+id/device_spinner" - /> - - <ProgressBar - style="?android:attr/progressBarStyleLarge" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:id="@+id/device_spinner" - android:layout_alignParentTop="true" - android:layout_alignParentEnd="true" - /> - --> - </RelativeLayout> |