By using dimension resources placed in configuration-qualified resource directories (e.g. res/values-large, res/values-sw800dp, etc.)
... or by creating entirely different layouts for those screens (e.g. res/layout-large and so on) ... or by setting values from code inside onCreate (yuck!). -- Kostya 2011/10/4 B.Arunkumar <[email protected]> > Hi, > > Is there any way to change the xml layouts in res.layout according > to the resolution of the device. First the resolution of the device > can be found out as per this link:- > > > http://android-er.blogspot.com/2009/08/exercise-get-screen-resolution-using.html > > But how do we incorporate the resolution parameters in > android:layout_marginTop for instance in the xml? > > Thank you, > B.Arunkumar > > -- > 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 -- 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

