]> git.zerfleddert.de Git - ms2-fixes/blobdiff - MS2Debounce/res/layout/main.xml
allow 3 digit poll_time
[ms2-fixes] / MS2Debounce / res / layout / main.xml
index 8fc51942b7bb62550da4e454523a67cb4c0ca7f7..a1f41a8ce449517502e2126105c8eaa08c3abc5c 100644 (file)
@@ -1,13 +1,99 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:orientation="vertical"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     >
+<TextView
+    android:id="@+id/delay_label"
+    android:layout_marginTop="20dip"
+    android:layout_alignParentLeft="true"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:text="Delay:"/>
+<EditText
+    android:id="@+id/debounce_delay"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_alignBaseline="@id/delay_label"
+    android:layout_toRightOf="@id/delay_label"
+    android:numeric="integer"
+    android:maxLength="2"
+    android:text="0"
+    android:enabled="false"
+    android:background="@android:drawable/editbox_background"/>
+<Button
+    android:id="@+id/set"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_alignBaseline="@id/delay_label"
+    android:layout_toRightOf="@id/debounce_delay"
+    android:onClick="setValues"
+    android:text="Set" />
+<Button
+    android:id="@+id/unload"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_alignBaseline="@id/delay_label"
+    android:layout_alignParentRight="true"
+    android:onClick="unloadModule"
+    android:text="Unload" />
+<Button
+    android:id="@+id/load"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_alignBaseline="@id/delay_label"
+    android:layout_toLeftOf="@id/unload"
+    android:onClick="loadModule"
+    android:text="Load" />
+<TextView
+    android:id="@+id/settle_label"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_marginTop="20dip"
+    android:layout_below="@id/delay_label"
+    android:text="Settle:"/>
+<EditText
+    android:id="@+id/settle_time"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_toRightOf="@id/settle_label"
+    android:layout_alignBaseline="@id/settle_label"
+    android:numeric="integer"
+    android:maxLength="3"
+    android:text="0"
+    android:enabled="false"
+    android:background="@android:drawable/editbox_background"/>
+<TextView
+    android:id="@+id/poll_label"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_marginTop="20dip"
+    android:layout_below="@id/settle_label"
+    android:text="Poll:"/>
+<EditText
+    android:id="@+id/poll_time"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_alignBaseline="@id/poll_label"
+    android:layout_toRightOf="@id/poll_label"
+    android:numeric="integer"
+    android:maxLength="3"
+    android:text="0"
+    android:enabled="false"
+    android:background="@android:drawable/editbox_background"/>
+<CheckBox
+    android:id="@+id/on_boot"
+    android:layout_below="@id/poll_label"
+    android:layout_width="fill_parent"
+    android:layout_height="wrap_content"
+    android:onClick="toggle_on_boot"
+    android:text="Load module on boot" />
 <TextView  
+    android:id="@+id/text"
+    android:layout_below="@id/on_boot"
     android:layout_width="fill_parent" 
-    android:layout_height="wrap_content" 
-    android:text="You will soon be able to set the debounce_delay here."
+    android:layout_height="fill_parent" 
+    android:text=""
     />
-</LinearLayout>
+</RelativeLayout>
 
Impressum, Datenschutz