Your comments
This means you only need one class.
12 years ago
Tyler,
Here is a solution for you. If you use this example in your class for the list items.
On your class background you can add this to the alpha attribute:
alpha="[eval: [datasource:myDatasourceName.dataSourceIndex] % 2 == 0 ? 0 : 1 ]"
Modulus (%) is just about the remainder. If you want to know if a number is even or odd, modulus it by 2 and if there is a remainder the number is odd.
Here is a solution for you. If you use this example in your class for the list items.
On your class background you can add this to the alpha attribute:
alpha="[eval: [datasource:myDatasourceName.dataSourceIndex] % 2 == 0 ? 0 : 1 ]"
Modulus (%) is just about the remainder. If you want to know if a number is even or odd, modulus it by 2 and if there is a remainder the number is odd.
Currently you can't change the showuser=yes (from map tag) native blue dot, but you can pull the current location through an object property and replace the value of the annotation with the variable you saved.
You would have to add currentlocation="yes" to your map tag to achieve this.
(assign property="var:currentloc" value="[object:MAP.location]"/)
(assign property="object:ANNOTATION.location" value="[var:currentloc]"/)
You would have to add currentlocation="yes" to your map tag to achieve this.
(assign property="var:currentloc" value="[object:MAP.location]"/)
(assign property="object:ANNOTATION.location" value="[var:currentloc]"/)
You can drop annotations at your current location by defining an attribute for location on your annotation.
If you want to replace the pin with an image, use an attribute of image="" and populate the value with an image stored in your App.
If you want to replace the pin with an image, use an attribute of image="" and populate the value with an image stored in your App.
<class name="office">
<annotation name="office" location="39.093606 -94.583316" image="image.png" >
</annotation>
</class>
Any action that you want to load on launch of the app, you can add an attribute called oninit="yes"
<action name="action1" oninit="yes">
<!--insert actions here-->
</action>
Jorge,
I would recommend using a sync block that contains at least two translate actions and a delay attribute.
As far as controlling their speed, I would like some more details surrounding that request.
I would recommend using a sync block that contains at least two translate actions and a delay attribute.
<action name="translate">
<sync>
<translate align="left" valign="bottom" time="2" curve="linear" />
<translate align="center" valign="center" time="2" curve="easeout" />
</sync>
</action>
As far as controlling their speed, I would like some more details surrounding that request.
It looks like your best bet is using a platform tag to help drive the font selection from one device to the next. WIRE does not currently support fallback functionality.
You could just use platform tags over your table that define the percentage leftover. In the iphone 4s it would be 76.667% for portrait. For iphone 5, 80.3%
Ok.
Well you could run an if statement that alphas off the panel if the pager's current page # is 1. Pager has an object property for the current page.
Well you could run an if statement that alphas off the panel if the pager's current page # is 1. Pager has an object property for the current page.
<action name="panel-off">
<if lhs="[object:nameofpager.page]" operator="ne" rhs="1">
<alpha value="0" time="0" target="nameofpanel" />
</if>
<if lhs="[object:nameofpager.page]" operator="e" rhs="1">
<alpha value="1" time="0" target="nameofpanel" />
</if>
</action>
Tyler,
I will have to investigate this further in the morning. I am thinking by default that if you chose a font that is not supported in a previous version of OS, then it may default to Helvetica. I am sure there is probably a javascript you can use to control this. Let me find out and get back to you.
Ian
I will have to investigate this further in the morning. I am thinking by default that if you chose a font that is not supported in a previous version of OS, then it may default to Helvetica. I am sure there is probably a javascript you can use to control this. Let me find out and get back to you.
Ian
Customer support service by UserEcho