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 83963bb..3da3345 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>