o~
i see it now.

give the weight when you use the method
 public void addView(View
<about:../../../reference/android/view/View.html>child,
ViewGroup.LayoutParams<about:../../../reference/android/view/ViewGroup.LayoutParams.html>params)

and construct the LayoutParams with public LinearLayout.LayoutParams(int
width, int height, float weight)
2009/2/1 邓亮 <[email protected]>

> Hi~
> i know we can use XML to specify layout_weight.(refer to APIdemo
> LinearLayout9.java)
> but is there any method to specify it from code?
>

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