aboutsummaryrefslogtreecommitdiff
path: root/app/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'app/res/layout')
-rw-r--r--app/res/layout/buttoncontainer.xml23
-rw-r--r--app/res/layout/color_sliders.xml9
-rw-r--r--app/res/layout/inputcontainer.xml15
-rw-r--r--app/res/layout/joycontainer.xml14
-rw-r--r--app/res/layout/led_slider.xml13
-rw-r--r--app/res/layout/leds_tablet.xml11
-rw-r--r--app/res/layout/main.xml28
-rw-r--r--app/res/layout/no_device.xml14
-rw-r--r--app/res/layout/output_tablet.xml13
-rw-r--r--app/res/layout/outputcontainer.xml14
-rw-r--r--app/res/layout/relay_tablet.xml9
-rw-r--r--app/res/layout/relaybutton.xml12
-rw-r--r--app/res/layout/servo.xml11
-rw-r--r--app/res/layout/servo_tablet.xml16
-rw-r--r--app/res/layout/servorelay.xml25
-rw-r--r--app/res/layout/templightcontainer.xml42
-rw-r--r--app/res/layout/vertical_color_sliders.xml11
-rw-r--r--app/res/layout/vertical_led_slider.xml16
18 files changed, 296 insertions, 0 deletions
diff --git a/app/res/layout/buttoncontainer.xml b/app/res/layout/buttoncontainer.xml
new file mode 100644
index 0000000..117ee2b
--- /dev/null
+++ b/app/res/layout/buttoncontainer.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ButtonContainer"
+ android:paddingLeft="5dip" android:layout_width="fill_parent"
+ android:orientation="vertical" android:layout_height="wrap_content" >
+ <TextView android:text="Buttons" android:id="@+id/lightPercentValue"
+ style="@style/DemoKitControlLabel" android:layout_weight="1"
+ android:layout_height="wrap_content" android:layout_width="wrap_content"
+ android:gravity="center|top"></TextView>
+ <LinearLayout android:id="@+id/ButtonContainer"
+ android:layout_width="fill_parent" android:orientation="horizontal"
+ android:layout_weight="1" android:layout_marginTop="5dip"
+ android:layout_height="wrap_content" android:layout_gravity="center_vertical">
+ <ImageButton android:background="@null" android:id="@+id/Button1"
+ style="@style/DemoKitButtonDisplay" android:src="@drawable/indicator_button1_off_noglow"></ImageButton>
+ <ImageButton android:background="@null" android:id="@+id/Button2"
+ style="@style/DemoKitButtonDisplay" android:src="@drawable/indicator_button2_off_noglow"></ImageButton>
+ <ImageButton android:background="@null" android:id="@+id/Button3"
+ style="@style/DemoKitButtonDisplay" android:src="@drawable/indicator_button3_off_noglow"></ImageButton>
+ <ImageButton android:background="@null" android:id="@+id/Button4"
+ style="@style/DemoKitButtonDisplay" android:src="@drawable/indicator_button_capacitive_off_noglow"></ImageButton>
+ </LinearLayout>
+</LinearLayout>
+
diff --git a/app/res/layout/color_sliders.xml b/app/res/layout/color_sliders.xml
new file mode 100644
index 0000000..0eb670c
--- /dev/null
+++ b/app/res/layout/color_sliders.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:orientation="vertical" android:padding="0dip"
+ android:layout_margin="0dip">
+ <include layout="@layout/led_slider" android:layout_width="match_parent" android:layout_height="wrap_content"/>
+ <include layout="@layout/led_slider" android:layout_width="match_parent" android:layout_height="wrap_content"/>
+ <include layout="@layout/led_slider" android:layout_width="match_parent" android:layout_height="wrap_content"/>
+</LinearLayout> \ No newline at end of file
diff --git a/app/res/layout/inputcontainer.xml b/app/res/layout/inputcontainer.xml
new file mode 100644
index 0000000..2c2f18f
--- /dev/null
+++ b/app/res/layout/inputcontainer.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:layout_height="match_parent"
+ android:orientation="vertical" android:weightSum="2">
+ <include layout="@layout/templightcontainer" android:id="@+id/TempLightContainer_ref"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:layout_weight="1" />
+ <include layout="@layout/buttoncontainer" android:id="@+id/ButtonContainer_ref"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:layout_weight="1" />
+ <include layout="@layout/joycontainer" android:id="@+id/JoyContainer_ref"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:layout_weight="0" />
+</LinearLayout>
+
diff --git a/app/res/layout/joycontainer.xml b/app/res/layout/joycontainer.xml
new file mode 100644
index 0000000..ff35579
--- /dev/null
+++ b/app/res/layout/joycontainer.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/JoyContainer"
+ android:layout_width="fill_parent" android:orientation="vertical"
+ android:layout_height="wrap_content" android:paddingLeft="5dip">
+ <TextView android:text="Joystick" android:id="@+id/joystickLabel"
+ android:layout_width="wrap_content" android:layout_height="fill_parent"
+ style="@style/DemoKitControlLabel" android:gravity="center"
+ android:layout_marginTop="10dp" android:layout_marginBottom="-40dp"></TextView>
+ <com.google.android.DemoKit.JoystickView
+ android:id="@+id/joystickView" android:layout_height="wrap_content"
+ android:src="@drawable/joystick_background" android:layout_width="match_parent"
+ android:layout_gravity="center_horizontal|bottom"></com.google.android.DemoKit.JoystickView>
+</LinearLayout>
+
diff --git a/app/res/layout/led_slider.xml b/app/res/layout/led_slider.xml
new file mode 100644
index 0000000..77eed2b
--- /dev/null
+++ b/app/res/layout/led_slider.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:orientation="horizontal" android:layout_weight="1">
+ <TextView android:text="@string/ledLabel" style="@style/DemoKitLEDText"
+ android:layout_gravity="left|center_vertical" android:layout_width="40dip" android:clickable="true"/>
+ <com.google.android.DemoKit.Slider
+ android:layout_height="wrap_content" android:layout_width="wrap_content"
+ android:layout_weight="1"></com.google.android.DemoKit.Slider>
+ <TextView android:text="155" style="@style/DemoKitLEDText" android:layout_width="40dip"
+ android:layout_gravity="center_vertical|right" android:gravity="right" android:clickable="true"/>
+</LinearLayout>
+
diff --git a/app/res/layout/leds_tablet.xml b/app/res/layout/leds_tablet.xml
new file mode 100644
index 0000000..f9f6cfb
--- /dev/null
+++ b/app/res/layout/leds_tablet.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
+ android:orientation="horizontal" android:layout_height="match_parent" android:layout_weight="1">
+ <include layout="@layout/vertical_color_sliders" android:id="@+id/leds1" android:layout_weight="1"
+ android:layout_width="wrap_content" android:layout_height="wrap_content" />
+ <include layout="@layout/vertical_color_sliders" android:id="@+id/leds2" android:layout_weight="1"
+ android:layout_width="wrap_content" android:layout_height="wrap_content" />
+ <include layout="@layout/vertical_color_sliders" android:id="@+id/leds3" android:layout_weight="1"
+ android:layout_width="wrap_content" android:layout_height="wrap_content" />
+</LinearLayout>
+
diff --git a/app/res/layout/main.xml b/app/res/layout/main.xml
new file mode 100644
index 0000000..1c52750
--- /dev/null
+++ b/app/res/layout/main.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:layout_height="match_parent"
+ android:orientation="vertical" android:background="@drawable/background_holo_dark">
+ <LinearLayout android:id="@+id/InOutTabContainer"
+ android:layout_width="fill_parent" android:orientation="horizontal"
+ android:layout_height="48dip">
+ <TextView android:layout_width="wrap_content" android:id="@+id/inputLabel"
+ android:text="@string/input" style="@style/DemoKitTextBase"
+ android:gravity="center" android:layout_weight="1"
+ android:background="@drawable/tab_focused_holo_dark"
+ android:clickable="true" android:layout_gravity="center"
+ android:layout_height="match_parent"></TextView>
+ <TextView android:text="@string/output" android:id="@+id/outputLabel"
+ android:layout_width="wrap_content" android:layout_height="match_parent"
+ style="@style/DemoKitTextBase" android:gravity="center"
+ android:layout_weight="1" android:layout_gravity="center"
+ android:clickable="true"></TextView>
+ </LinearLayout>
+ <FrameLayout android:layout_width="match_parent"
+ android:layout_height="wrap_content" android:orientation="vertical"
+ android:paddingLeft="10dip" android:paddingRight="10dip">
+ <include layout="@layout/inputcontainer" android:id="@+id/inputContainer"
+ android:layout_width="match_parent" android:layout_height="wrap_content" />
+ <include layout="@layout/outputcontainer" android:id="@+id/outputContainer"
+ android:layout_width="match_parent" android:layout_height="wrap_content" />
+ </FrameLayout>
+</LinearLayout>
diff --git a/app/res/layout/no_device.xml b/app/res/layout/no_device.xml
new file mode 100644
index 0000000..b8492d4
--- /dev/null
+++ b/app/res/layout/no_device.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:layout_weight="1"
+ android:layout_height="fill_parent" android:orientation="vertical"
+ android:background="@drawable/background_holo_dark"
+ android:layout_gravity="fill_horizontal">
+ <TextView android:layout_width="match_parent"
+ android:layout_height="wrap_content" android:id="@+id/textView1"
+ android:layout_weight="1" android:text="@string/no_device" style="@style/DemoKitNoDevice"
+ android:gravity="center"></TextView>
+ <ImageView android:id="@+id/imageView1" android:layout_width="match_parent"
+ android:layout_height="wrap_content" android:layout_gravity="fill_vertical"
+ android:src="@drawable/demokit_splash" android:layout_weight="1"></ImageView>
+</LinearLayout>
diff --git a/app/res/layout/output_tablet.xml b/app/res/layout/output_tablet.xml
new file mode 100644
index 0000000..bca2a7b
--- /dev/null
+++ b/app/res/layout/output_tablet.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:orientation="vertical" android:layout_weight="1">
+ <include layout="@layout/servo_tablet" android:id="@+id/servo_tablet"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:layout_weight="0" android:layout_gravity="center_vertical" />
+ <include layout="@layout/relay_tablet" android:layout_width="fill_parent" android:layout_weight="0"
+ android:layout_height="wrap_content" />
+ <include layout="@layout/leds_tablet" android:layout_width="match_parent" android:layout_weight="1"
+ android:layout_height="wrap_content" />
+</LinearLayout>
+
diff --git a/app/res/layout/outputcontainer.xml b/app/res/layout/outputcontainer.xml
new file mode 100644
index 0000000..95b8b77
--- /dev/null
+++ b/app/res/layout/outputcontainer.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:orientation="vertical" >
+ <include layout="@layout/servorelay" android:id="@+id/servoRelay_ref"
+ android:layout_height="wrap_content" />
+ <include layout="@layout/color_sliders" android:id="@+id/leds1"
+ android:layout_width="match_parent" android:layout_height="wrap_content" />
+ <include layout="@layout/color_sliders" android:id="@+id/leds2"
+ android:layout_width="match_parent" android:layout_height="wrap_content" />
+ <include layout="@layout/color_sliders" android:id="@+id/leds3"
+ android:layout_width="match_parent" android:layout_height="wrap_content" />
+</LinearLayout>
+
diff --git a/app/res/layout/relay_tablet.xml b/app/res/layout/relay_tablet.xml
new file mode 100644
index 0000000..18f229b
--- /dev/null
+++ b/app/res/layout/relay_tablet.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
+ android:orientation="horizontal" android:layout_height="wrap_content">
+ <include android:id="@+id/relay1" layout="@layout/relaybutton"
+ android:layout_width="wrap_content" android:layout_height="wrap_content" />
+ <include android:id="@+id/relay2" layout="@layout/relaybutton"
+ android:layout_width="wrap_content" android:layout_height="wrap_content" />
+</LinearLayout>
+
diff --git a/app/res/layout/relaybutton.xml b/app/res/layout/relaybutton.xml
new file mode 100644
index 0000000..f6b8584
--- /dev/null
+++ b/app/res/layout/relaybutton.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="wrap_content" android:orientation="vertical"
+ android:layout_width="wrap_content" android:layout_marginTop="-10dip">
+ <TextView android:text="@string/relay1Label" style="@style/DemoKitControlLabel"
+ android:layout_width="match_parent" android:gravity="left"
+ android:layout_height="wrap_content"></TextView>
+ <ToggleButton style="@style/DemoKitRelayButton"
+ android:textOff="@string/off" android:textOn="@string/on"
+ android:layout_height="wrap_content" android:layout_width="match_parent"></ToggleButton>
+</LinearLayout>
+
diff --git a/app/res/layout/servo.xml b/app/res/layout/servo.xml
new file mode 100644
index 0000000..6444773
--- /dev/null
+++ b/app/res/layout/servo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:orientation="vertical"
+ android:layout_height="wrap_content">
+ <TextView android:layout_height="wrap_content" style="@style/DemoKitControlLabel"
+ android:layout_width="wrap_content" android:text="@string/servo1Label"></TextView>
+ <com.google.android.DemoKit.Slider
+ android:layout_height="wrap_content" android:layout_width="match_parent"
+ android:layout_marginTop="-7dip"></com.google.android.DemoKit.Slider>
+</LinearLayout>
+
diff --git a/app/res/layout/servo_tablet.xml b/app/res/layout/servo_tablet.xml
new file mode 100644
index 0000000..23c6ee8
--- /dev/null
+++ b/app/res/layout/servo_tablet.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent" android:orientation="horizontal"
+ android:layout_height="wrap_content"
+ android:padding="20dip">
+ <include layout="@layout/servo" android:id="@+id/servo1"
+ android:layout_width="fill_parent" android:layout_height="wrap_content"
+ android:layout_weight="1" />
+ <include layout="@layout/servo" android:id="@+id/servo2"
+ android:layout_weight="1" android:layout_width="fill_parent"
+ android:layout_height="wrap_content" />
+ <include layout="@layout/servo" android:id="@+id/servo3"
+ android:layout_weight="1" android:layout_width="fill_parent"
+ android:layout_height="wrap_content" />
+</LinearLayout>
+
diff --git a/app/res/layout/servorelay.xml b/app/res/layout/servorelay.xml
new file mode 100644
index 0000000..6225731
--- /dev/null
+++ b/app/res/layout/servorelay.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/servoRelay" android:layout_width="match_parent"
+ android:orientation="horizontal" android:layout_height="wrap_content">
+ <LinearLayout android:layout_width="0dip"
+ android:layout_height="wrap_content" android:id="@+id/servos"
+ android:orientation="vertical" android:layout_weight="2">
+ <include layout="@layout/servo" android:id="@+id/servo1"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:layout_weight="0.7" />
+ <include layout="@layout/servo" android:id="@+id/servo2"
+ android:layout_width="match_parent" android:layout_height="wrap_content" />
+ <include layout="@layout/servo" android:id="@+id/servo3"
+ android:layout_width="match_parent" android:layout_height="wrap_content" />
+ </LinearLayout>
+ <LinearLayout android:layout_height="wrap_content"
+ android:id="@+id/relays" android:orientation="vertical"
+ android:layout_width="0dip" android:layout_weight="1" android:padding="-10dip">
+ <include android:id="@+id/relay1" layout="@layout/relaybutton"
+ android:layout_width="wrap_content" android:layout_height="wrap_content" />
+ <include android:id="@+id/relay2" layout="@layout/relaybutton"
+ android:layout_width="wrap_content" android:layout_height="wrap_content" />
+ </LinearLayout>
+</LinearLayout>
+
diff --git a/app/res/layout/templightcontainer.xml b/app/res/layout/templightcontainer.xml
new file mode 100644
index 0000000..d3a2ba1
--- /dev/null
+++ b/app/res/layout/templightcontainer.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/TempLightContainer" android:layout_width="fill_parent"
+ android:orientation="horizontal" android:layout_height="wrap_content"
+ android:paddingLeft="5dip">
+ <LinearLayout android:id="@+id/TempContainer"
+ android:layout_width="fill_parent" android:orientation="vertical"
+ android:layout_weight="1" android:layout_height="wrap_content">
+ <TextView android:id="@+id/tempLabel" android:text="Temp"
+ style="@style/DemoKitControlLabel" android:gravity="center"
+ android:layout_weight="1"></TextView>
+ <TextView android:text="45ยบ" android:id="@+id/tempValue"
+ style="@style/DemoKitMeasurement" android:layout_weight="1"></TextView>
+ <TextView android:text=" " android:id="@+id/hiddenPercentValue"
+ style="@style/DemoKitControlLabel" android:gravity="center"
+ android:layout_weight="1"></TextView>
+ </LinearLayout>
+ <LinearLayout android:id="@+id/LightContainer"
+ android:layout_width="fill_parent" android:orientation="vertical"
+ android:layout_weight="1" android:layout_height="wrap_content">
+ <TextView android:id="@+id/lightPercentLabel" android:text="Light"
+ style="@style/DemoKitControlLabel" android:gravity="center"
+ android:layout_weight="1"></TextView>
+ <LinearLayout android:id="@+id/lightPercentValueContainer"
+ android:layout_width="fill_parent" android:orientation="horizontal"
+ android:layout_height="wrap_content">
+ <TextView android:text="23" android:id="@+id/lightPercentValue"
+ style="@style/DemoKitMeasurement"></TextView>
+ <TextView android:id="@+id/lightPercentSuffix" style="@style/DemoKitMeasurementSuffix"
+ android:gravity="top" android:text="%"></TextView>
+ </LinearLayout>
+ <LinearLayout android:id="@+id/lightRawValueContainer"
+ android:layout_width="wrap_content" android:orientation="horizontal"
+ android:layout_height="wrap_content">
+ <TextView android:text="200" android:id="@+id/lightRawValue"
+ style="@style/DemoKitControlLightLowerLabel"></TextView>
+ <TextView android:text="/1024"
+ style="@style/DemoKitControlLightLowerLabelConst"></TextView>
+ </LinearLayout>
+ </LinearLayout>
+</LinearLayout>
+
diff --git a/app/res/layout/vertical_color_sliders.xml b/app/res/layout/vertical_color_sliders.xml
new file mode 100644
index 0000000..db65e1e
--- /dev/null
+++ b/app/res/layout/vertical_color_sliders.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:layout_height="wrap_content"
+ android:orientation="horizontal" >
+ <include layout="@layout/vertical_led_slider"
+ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginRight="20dip"/>
+ <include layout="@layout/vertical_led_slider"
+ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginRight="20dip"/>
+ <include layout="@layout/vertical_led_slider"
+ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginRight="20dip"/>
+</LinearLayout> \ No newline at end of file
diff --git a/app/res/layout/vertical_led_slider.xml b/app/res/layout/vertical_led_slider.xml
new file mode 100644
index 0000000..a649648
--- /dev/null
+++ b/app/res/layout/vertical_led_slider.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content" android:layout_height="match_parent"
+ android:orientation="vertical" android:layout_weight="1" android:layout_marginRight="30dip" android:paddingRight="20dip">
+ <TextView android:text="@string/ledLabel" style="@style/DemoKitLEDText"
+ android:layout_gravity="center" android:layout_height="20dip"
+ android:clickable="true" />
+ <com.google.android.DemoKit.VerticalSlider
+ android:layout_height="wrap_content" android:layout_width="wrap_content"
+ android:layout_weight="1" android:layout_gravity="center">
+ </com.google.android.DemoKit.VerticalSlider>
+ <TextView android:text="155" style="@style/DemoKitLEDText"
+ android:layout_height="20dip" android:layout_gravity="center"
+ android:gravity="center" android:clickable="true" />
+</LinearLayout>
+