diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2014-12-06 19:25:51 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2014-12-06 19:25:51 +0100 |
commit | 76b17543bee2c38995fca07e21d5b271eddb7369 (patch) | |
tree | 7e3e8067a8327ffc5ab6ddca09da0989fd0db0f2 /app/src/main/res/layout | |
parent | bb59449fbcbb46ba018313c51150924e7aec3be0 (diff) | |
download | fiken-display-android-76b17543bee2c38995fca07e21d5b271eddb7369.tar.gz fiken-display-android-76b17543bee2c38995fca07e21d5b271eddb7369.tar.bz2 fiken-display-android-76b17543bee2c38995fca07e21d5b271eddb7369.tar.xz fiken-display-android-76b17543bee2c38995fca07e21d5b271eddb7369.zip |
o Adding seek bars to each gauge. Sending updates to the device.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_display_control.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_gauge.xml | 24 |
2 files changed, 27 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_display_control.xml b/app/src/main/res/layout/activity_display_control.xml index 7b19429..1ee86a0 100644 --- a/app/src/main/res/layout/activity_display_control.xml +++ b/app/src/main/res/layout/activity_display_control.xml @@ -22,18 +22,20 @@ android:textSize="12sp" android:layout_below="@+id/device_name"/> +<!-- <TextView android:id="@+id/gauge_count" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/device_rssi"/> +--> <Button android:id="@+id/button_disconnect" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/disconnect" - android:layout_below="@+id/gauge_count" + android:layout_below="@+id/device_rssi" /> <LinearLayout diff --git a/app/src/main/res/layout/fragment_gauge.xml b/app/src/main/res/layout/fragment_gauge.xml new file mode 100644 index 0000000..ff1df86 --- /dev/null +++ b/app/src/main/res/layout/fragment_gauge.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clickable="true" + android:focusable="true" + > + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="Gauge: XX" + android:id="@+id/gauge_title" + android:layout_gravity="center_horizontal" + android:gravity="start"/> + + <SeekBar + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:id="@+id/gauge_seek_bar" + android:layout_gravity="center_horizontal"/> +</LinearLayout>
\ No newline at end of file |