slv wrote:
> Hello,
>   is there a way to set the weight of a view using API calls? I
> construct parts of my UI at runtime. The dynamic UI has multiple View.
> However, I want to set the weight of those view to be non-equal. Any
> idea on how to do that?

http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html

See the layout_weight field.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
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