Skip to main content
Participating Frequently
November 1, 2011
Question

Different Text Size for different mobile devices and Tabbed View Application

  • November 1, 2011
  • 1 reply
  • 654 views

Hi,

I am developing an sample mobile application to target all mobile devices (IPhone/IPad/IPod and Android).

I am facing an Issue that i am using default text size for the TextInput, TextArea and label but text size look so small for some devices, i discuss this with some(unkown) person(he is an IPhone developer).

He told me that in Iphone development for different devices they use different text size.

So how would I do the same at our Flex Mobile application ?

Please provide me help regarding this

There is one more problem in the application. I have tabbed view application, and i assign the firstview of the tab after 10 or more seconds of interval so that data will load in the application properly.

But issue is that my first tab is not show anything at first go. When we switch the tab then it loads the screen and application work fine.

Please provide me any help so that i can see the first Tab Screen.

Thanks

This topic has been closed for replies.

1 reply

November 1, 2011

Hi there. For your font issue you need to set up a variable call it var fontSize or something. Then have an if statement that reads something like if (stage.stageWidth <= 320) fontSize=8 else if (stage.stageWidth > 320 || stage.stageWidth <= 640) fontSize = 12.

Then instead of giving your font a size give it the size of fontSize variable and it will check for stage width or whatever you base it on and apply that size to your text field.

I had done this for an app I did for Kellogg Garden Products but if you notice when you go from portrait to landscape mode the font size increases using this technique.

http://itunes.apple.com/us/app/kellogg-garden-products-soil/id440522636?mt=8