我正在使用来自androidpercent支持包的PercentRelativeLayout。这就是我的布局。我想以编程方式更改view_child的高度。如何使用PercentRelativeLayout.LayoutParams或任何其他方式做到这一点。 最佳答案 您想设置一个新的百分比值吗?如果是,您需要:Viewview=findViewById(R.id.view_child);PercentRelativeLayout.LayoutParamsparams=(PercentRelativeLayout.LayoutPar