12-16-2010 08:09 PM
No matter what I set the size to, the circle graphic for the radio button skin always comes out to 50 px in height. I can't tell which theme the apps use by default...is there a way to edit those? My app is Flex 4.5.
12-16-2010 08:31 PM
12-16-2010 08:50 PM
Here's a plain app with just the Checkbox. Note that the label isn't visible because the width is only 25 px.
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <s:CheckBox label="Huh?" width="25" height="25" /> </s:Application>
12-16-2010 10:52 PM
On an actual device that size, that is not huge. Working in a simulator is very misleading in terms of final product appearance on a real device.
50 pixels on the real device is only about 1/3 to 1/2 of an inch. Not much on a touch screen.
12-17-2010 12:39 AM
it seems we cannot alter the size of the checkbox component even using the QNX AIR API through the normal AIR Mobile Project (strictly AS3). Doesnt just apply to MXML code. Here's a sample i tried:
var myCheckBox:CheckBox = new CheckBox(); addChild(myCheckBox); myCheckBox.setSize(100,100); trace(myCheckBox.width + ", " + myCheckBox.height);
although the race reports the size is changed the box itself isnt. when you apply the size to the checkbox it simply alters the size of the component that holds the checkbox not the actual checkbox. but as jackson stated the button is not a bad a size by default and feasible.
12-17-2010 01:29 PM
Here is a good article explaining the Hero mobile components and the fact that there is a "mobile skin" applied to them which makes them bigger.
Also it states that the mobile skin is phone-size optimized and it will be fixed for tablets in the future release:
"Note that in this preview release, the mobile skins have been optimized for 240 dpi devices. On devices with lower pixel densities, such as tablets, these skins will appear a bit large by default—we'll be addressing this before our final release."
Hope this helps
12-17-2010 02:03 PM