开发者

Setting the weight of LinearView within code

I need to replicate the layout-weight parameter that you can set in XML within the onCreate method of my class I am creating. Does anybo开发者_如何学Pythondy know how to do this?


you need to set linearlayout params:

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜