sode

前提,已经new了这个view ,并且添加。

第一步:获取这个view的参数设置

RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams)absSeekBar.getLayoutParams();

第二步:设置参数(大小等)

layoutParams.width = 100;

第三步:设置布局

layoutParams.addRule(RelativeLayout.CENTER_VERTICAL);

第四步:把参数给这个view

absSeekBar.setLayoutParams(layoutParams);

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-16
  • 2022-12-23
  • 2021-08-07
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案