projects
/
iot2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/benchmarks/other/PhoneInterface/Control/app/src/main/res/layout/content_main.xml
b/benchmarks/other/PhoneInterface/Control/app/src/main/res/layout/content_main.xml
index 83963bb9ee3aadb7d94e14718aa956ad724890c7..3da3345e70ca8e3984f3f5fdb098841e7283000c 100644
(file)
--- a/
benchmarks/other/PhoneInterface/Control/app/src/main/res/layout/content_main.xml
+++ b/
benchmarks/other/PhoneInterface/Control/app/src/main/res/layout/content_main.xml
@@
-42,14
+42,12
@@
android:textSize="36sp"
android:textStyle="bold" />
android:textSize="36sp"
android:textStyle="bold" />
- <
Switch
- android:id="@+id/alarm
Switch
"
+ <
ToggleButton
+ android:id="@+id/alarm
Button
"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:
layout_centerHorizontal="true
"
+ android:
text="OFF
"
android:layout_centerVertical="true"
android:layout_centerVertical="true"
- android:checked="false"
- android:text="Alarm Control "
- android:textSize="18sp" />
+ android:layout_centerHorizontal="true" />
</RelativeLayout>
</RelativeLayout>