binding.llLyricRoot.updateLayoutParams<RelativeLayout.LayoutParams>{
removeRule(RelativeLayout.ALIGN_PARENT_TOP)
addRule(RelativeLayout.CENTER_HORIZONTAL)
}
binding.flSongLogo.updateLayoutParams<MarginLayoutParams> {
width = LayoutParams.MATCH_PARENT
}
binding.llLyricRoot.updateLayoutParams<MarginLayoutParams> {
topMargin = 0
}
动态修改布局
最新推荐文章于 2024-08-24 17:09:16 发布