You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2).在 public TagGroup(Context context, AttributeSet attrs, int defStyleAttr) 增加
maxRow = a.getInt(R.styleable.TagGroup_atg_maxRow, Integer.MAX_VALUE);
3).在onMeasure修改.
if (rowWidth > widthSize) {// Next line.
if (++row == maxRow) {
break;
}
rowWidth = childWidth; // The next maxRow width.
height += rowMaxHeight + verticalSpacing;
rowMaxHeight = childHeight; // The next maxRow max height.
}
The PM let me limit the content to 2 lines,so how can I do it?Thanks.
产品需要限制显示2行,怎么限制呢?谢谢~
The text was updated successfully, but these errors were encountered: