build the interface without the xml, coding it, so each time you are going
to draw it check current resolution.
I worked with brew a few years back and some things we did that way, others
we just draw the button the same size in pixels, so the owner of the bigger
screen would see things smaller or had more unused screen area

On Thu, Mar 5, 2009 at 8:53 PM, Videoguy <[email protected]> wrote:

>
> Hi
> I am working on a screen that needs to look fine at HVGA-L resolution
> as well as 640x480 resolution. Lets say I have a button that is 200
> pixels wide and 50 pixels high on HVGA-L skin. When the same layout
> xml is shown at 640x480 skin, I want my button size increase
> proportionately. The hardware the app runs on supports both the
> resolutions.
>
> How do I do that?
>
> None of the units that the android framework provides seems to have
> this facility. If I use px, then the button size will stay same. dip
> doesn't matter because it is the same hardware. sp is meant for fonts,
> not for button width/heights.
>
> Is there any trick to do this?
>
> Thanks
> Videoguy
>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to