7
我想这样做编程 -Android - 如何为RelativeLayout以编程方式指定权重?
<LinearLayout>
<RelativeLayout1 weight = 1>
<RelativeLayout2 weight = 3>
<RelativeLayout3 weight = 1>
<LinearLayout>
它不会让我做了setWeight编程。不过,我确实看到RelativeLayout在XML中有一个android:layout_weight参数。我错过了什么吗?
工作就像一个魅力!感谢一堆:) – Suchi 2011-05-20 21:26:52