开发者

Setting the weight of LinearView within code

开发者 https://www.devze.com 2023-02-01 07:09 出处:网络
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 linea

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

精彩评论

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