I'm trying to create a layout using XML where there is a view that is
a square that fills the width of the activity in portrait mode without
setting any values that assume the screen will always be a certain
resolution or aspect ratio. The remainder of the space available will
have additional views just below. The only way I can find to do this
uses the android:layout_weight attribute, but to make one control a
square the fills the width of the activity in this way assumes that
the aspect ratio of all devices will be the same.

Is the a solution to this without hardcoding any dimensions?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to