On Sun, Nov 22, 2009 at 1:50 AM, rukiman <[email protected]> wrote:
> Except seems like in compatible mode gravity of center_vertically is > not working correctly? The container of the textview I am trying to > center vertically is in a LinearLayout with height = 480px however it > is still centering within the WVGA screen height. > What can I do to fix this? > Compatibility mode does not hide the fact that the screen is WVGA. The screen you see is still that tall, so any layout you do will be within that screen. > I have to rely on compatible mode unfortunately as there is too many > graphics to redraw for different resolutions and no money to pay the > designer :D > Turning off compatibility mode doesn't mean you need to have graphics for every density; the system will still scale graphics if they aren't in the density of the screen (in fact it can do this better because it doesn't at the same time need to make your app think the graphics are not scaled). And the new APIs give you a lot more control over how the scaling happens -- for example you can much more easily have them scaled at load time, rather than this happening at draw time and potentially significantly slowing down your app. -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

