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
精彩评论