草庐IT

layoutMarginBottom

全部标签

android - 如何以编程方式设置 scrollview 的 layoutMarginBottom

在其中一种布局中,我正在使用scrollview并希望以编程方式设置其layoutMarginBottom。我该怎么做?这是xml文件:这里我想设置ScrollView的layoutMarginBottom。请帮助我。在此先感谢。 最佳答案 我是这样实现的:sv=(ScrollView)findViewById(R.id.scrollView);sv.setBackgroundColor(Color.TRANSPARENT);RelativeLayout.LayoutParamslayoutParams=(RelativeLayou