0

Does AlljoynON support the switch hints of stringProperty

asked 2014-12-17 01:39:02 -0800

yellowcybertan gravatar image

hi folks,

I try to show switch-button(ON/OF) on AlljoynOn(below is my snippet XML code):

<stringProperty>
        <name>myAction</name>
        <getCode>getMyAction</getCode>
        <setCode>setMyAction(%s)</setCode>
        <secured>false</secured>
        <enabled>true</enabled>
        <writable>true</writable>
        <label>
                <value type="literal" language="en">Action</value>
        </label>
        <bgcolor>0x008000</bgcolor>
        <hints>
                <hint>switch</hint>
        </hints>
        <constraintVals>
                <constraint>
                        <display>
                                <value type="literal" language="en">On</value>
                        </display>
                        <value>1</value>
                </constraint>
                <constraint>
                        <display>
                                <value type="literal" language="en">Off</value>
                        </display>
                        <value>0</value>
                </constraint>
        </constraintVals>
</stringProperty>

But AlljoynOn just show "Action ON" label as textview hints, NOT SWITCH-BUTTON!!

Can anyone provide relative experience or tips to me? thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-13 13:00:20 -0800

bspencer gravatar image

You are using a stringProperty tag instead of a scalarProperty tag.

edit flag offensive delete publish link more

Comments

switch is defined in stringProperty, not in scalarProperty

nirdroid ( 2015-11-09 03:46:51 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-12-17 01:39:02 -0800

Seen: 81 times

Last updated: Jan 13 '15