Using a button instead of a switch for the app (avoiding race condition)
[iot2.git] / benchmarks / other / PhoneInterface / Control / app / src / main / res / layout / content_main.xml
index 83963bb9ee3aadb7d94e14718aa956ad724890c7..3da3345e70ca8e3984f3f5fdb098841e7283000c 100644 (file)
         android:textSize="36sp"
         android:textStyle="bold" />
 
-    <Switch
-        android:id="@+id/alarmSwitch"
+    <ToggleButton
+        android:id="@+id/alarmButton"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_centerHorizontal="true"
+        android:text="OFF"
         android:layout_centerVertical="true"
-        android:checked="false"
-        android:text="Alarm Control  "
-        android:textSize="18sp" />
+        android:layout_centerHorizontal="true" />
 
 </RelativeLayout>