diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2014-12-31 16:31:49 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2014-12-31 16:31:49 +0100 |
commit | ed559834ccddafa955df5b528f08fba964e57699 (patch) | |
tree | 3fcbcedaf49232de5c8fe8b6f67bd2fd8c52afa9 /app/src/main/res/layout/listitem_device.xml | |
download | io.trygvis.soilmoisture-android-ed559834ccddafa955df5b528f08fba964e57699.tar.gz io.trygvis.soilmoisture-android-ed559834ccddafa955df5b528f08fba964e57699.tar.bz2 io.trygvis.soilmoisture-android-ed559834ccddafa955df5b528f08fba964e57699.tar.xz io.trygvis.soilmoisture-android-ed559834ccddafa955df5b528f08fba964e57699.zip |
o Initial import of Soil Moisture app.
Diffstat (limited to 'app/src/main/res/layout/listitem_device.xml')
-rw-r--r-- | app/src/main/res/layout/listitem_device.xml | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/app/src/main/res/layout/listitem_device.xml b/app/src/main/res/layout/listitem_device.xml new file mode 100644 index 0000000..2d6ef91 --- /dev/null +++ b/app/src/main/res/layout/listitem_device.xml @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_height="wrap_content" + android:layout_width="wrap_content"> + + <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"/> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/spacer" + android:layout_alignParentTop="true" + android:layout_alignParentEnd="true"> + + <Button + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:text="@string/connect" + android:id="@+id/button_connect" + /> + + <ProgressBar + style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/device_spinner" + /> + + </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> |