Related questions
Question 565 - H14-231_V1.0 discussion
When a developer is developing a smart home application, the Switch component will be used to represent the switch of some devices, and ON should be displayed on the ON status component, and 0FF should be displayed on the closed state component. You can use the following code to meet your needs:
Switch btnSwitch=
(Switch)findComponentByld(ResourceTable.
ld_btn_switch);
btnSwitch.setStateOffText('ON');
btnSwitch.setStateOnText('OFF');
A.
True
B.
False
Your answer:
0 comments
Sorted by
Leave a comment first