Hi,

You should use LinearLayout, and the layout_weight attribute of the
LinearLayout.LayoutParams on your views to define who much space they
occupy.
For your case you could set the layout_weight of your picture view to 1 and
the layout_weight of your button view to 0.
http://code.google.com/android/reference/android/widget/LinearLayout.LayoutParams.html#attr_android:layout_weight

To divide the space between multiple views you could use different values of
layout_weight on each of your views.

Thanks,
Megha

On 3/22/08, vitvikt <[EMAIL PROTECTED]> wrote:
>
>
> Hi!
> Can anybody answer me, how can I layout buttons under picture and get
> good result for different screen size?
> In onSizeChanged() I use screen size to modify my picture, but how can
> I set percent for picture view and buttons view? For example 90% for
> picture and 10% for buttons.
> Thank you.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to