(转)Android 代码动态布局 LayoutParams 使用 https://www.jianshu.com/p/36b200a0bff4 LayoutParams 的作用是:子控件告诉父控件,自己要如何布局。