diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-27 21:23:50 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-27 21:23:50 +0100 |
commit | c4685214d8db34166213ffa373a16af1a99401a5 (patch) | |
tree | 56e24e25119f28ff8c0a730c4d5313bc523a5c66 /app/src/main/res/layout/fragment_sensor.xml | |
parent | 138b49247a72890df66af9a01e1179dab72a4b71 (diff) | |
download | io.trygvis.soilmoisture-android-c4685214d8db34166213ffa373a16af1a99401a5.tar.gz io.trygvis.soilmoisture-android-c4685214d8db34166213ffa373a16af1a99401a5.tar.bz2 io.trygvis.soilmoisture-android-c4685214d8db34166213ffa373a16af1a99401a5.tar.xz io.trygvis.soilmoisture-android-c4685214d8db34166213ffa373a16af1a99401a5.zip |
o Adding 'recently seen' on BtDevice. Updated when scanning.
o Removing BtScanResult, it was never used.
o Getting MainActivity to listen on device property changed so the UI is properly updated.
o Adding a status bar with color to indicate if the device is available, connected or not seen.
Diffstat (limited to 'app/src/main/res/layout/fragment_sensor.xml')
-rw-r--r-- | app/src/main/res/layout/fragment_sensor.xml | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/app/src/main/res/layout/fragment_sensor.xml b/app/src/main/res/layout/fragment_sensor.xml index 82d0d77..4d911ca 100644 --- a/app/src/main/res/layout/fragment_sensor.xml +++ b/app/src/main/res/layout/fragment_sensor.xml @@ -1,21 +1,25 @@ -<?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"> + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + android:paddingBottom="@dimen/activity_vertical_margin" + tools:context="io.trygvis.soilmoisture.SensorActivity$PlaceholderFragment"> <TextView - android:id="@+id/description" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:layout_marginTop="0dp"/> + android:text="@string/hello_world" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> - <ProgressBar - style="?android:attr/progressBarStyleHorizontal" - android:id="@+id/sensor_progress" - android:layout_width="fill_parent" - android:layout_height="20dp" - android:layout_below="@id/description"/> + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/refresh" + android:id="@+id/button" + android:layout_alignParentBottom="true" + android:layout_alignParentStart="true" + android:layout_alignParentEnd="true"/> </RelativeLayout> |