diff options
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 |