Results 1 comments of TimLoong

1).手动在attrs.xml增加 attr name="atg_maxRow" format="integer" 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) {...