MultiDPIVerticalLayout and MultiDPIHorizontalLayout is an amazing approach
I wasn't aware about...
I personally use Dynamic Layouts all percentages and set the Gap to 0. I
take a reference width or height depending on Orientation and I use it in
my s:Spacer in the VGroup or HGroup.
<s:VGroup id="refGroup" height="100%"/>
<s:HGroup id="ohterGroup" width="{refGroup.height/2}"/>
<s:Spacer height="{refGroup.height/10}"/>
Not sure about the repercussions of this approach but works great for me...
Regarding fontSize i leave it to up auto DPI scaling...
Kind Regards,
Ronny Shibley, Eng
Software Architect | Codefish | www.codefish.com
t +961 5 450824 | m +961 70 250650
On Wed, Apr 16, 2014 at 12:38 PM, Maurice Amsellem <
[email protected]> wrote:
> Text / fonts => use css and media queries
> Gaps => use MultiDPIHorizontalLayout / MultiDPIVerticalLayout.
>
> Another approach, which is easier IMO, is to set an "authoring" DPI to
> your application ( using applicationDPI at the application level),
> and then set all your measures (fonts, gaps, widths,etc) according to this
> reference DPI.
>
> Here is an article that explains the pros and cons of each approach:
> https://blogs.adobe.com/jasonsj/2011/05
>
> Maurice
>
> -----Message d'origine-----
> De : skvsarathyourfriend [mailto:[email protected]]
> Envoyé : mercredi 16 avril 2014 11:24
> À : [email protected]
> Objet : Auto changing the gaps,font size based on application DPI in
> Flexmobile
>
> I am working on a mobile app for multi resolutions,for which the
> components in the screen should adjust itself (Text font,gaps)based on the
> application DPI. How can i do this?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Auto-changing-the-gaps-font-size-based-on-application-DPI-in-Flexmobile-tp6144.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>