diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-02 21:38:52 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-02 21:38:52 +0100 |
commit | da80f3d219c0c05568db0cb9a8910f02cc281d47 (patch) | |
tree | f62e2c251a03e2a33a7733f1e5d1829a40bdb1ba /app/src/main/res/layout | |
parent | ed559834ccddafa955df5b528f08fba964e57699 (diff) | |
download | io.trygvis.soilmoisture-android-da80f3d219c0c05568db0cb9a8910f02cc281d47.tar.gz io.trygvis.soilmoisture-android-da80f3d219c0c05568db0cb9a8910f02cc281d47.tar.bz2 io.trygvis.soilmoisture-android-da80f3d219c0c05568db0cb9a8910f02cc281d47.tar.xz io.trygvis.soilmoisture-android-da80f3d219c0c05568db0cb9a8910f02cc281d47.zip |
o Getting closer to something that actually work.
Diffstat (limited to 'app/src/main/res/layout')
-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> |