ConstraintLayout内,wrap_content控件内容挤出屏幕外的解决方案
问题描述Constraintlayout内有两个控件,并排在一行,第二个控件的宽度是wrap_content,导致第二个控件的内容被挤出屏幕外解决方案//第二个控件加入1. layout_contraintright_torightof = "parent"2. layout_width = 0dp3. layout_contraintlet_torightof = "text1"//控件1实现效
·
问题描述
Constraintlayout内有两个控件,并排在一行,第二个控件的宽度是wrap_content,导致第二个控件的内容被挤出屏幕外
解决方案
//第二个控件加入
1. layout_contraintright_torightof = "parent"
2. layout_width = 0dp
3. layout_contraintlet_torightof = "text1"//控件1
实现效果
更多推荐
所有评论(0)