Skip to content

Instantly share code, notes, and snippets.

@ZieIony
Created January 7, 2020 20:42
Show Gist options
  • Select an option

  • Save ZieIony/adf646b70ecadb1daf253a721d2e4395 to your computer and use it in GitHub Desktop.

Select an option

Save ZieIony/adf646b70ecadb1daf253a721d2e4395 to your computer and use it in GitHub Desktop.
public class FlowLayout extends FrameLayout {
public static class LayoutParams extends FrameLayout.LayoutParams {
private boolean fill = false;
public LayoutParams(Context c, AttributeSet attrs) {
super(c, attrs);
TypedArray a = c.obtainStyledAttributes(attrs, R.styleable.FlowLayout_Layout);
fill = a.getBoolean(R.styleable.FlowLayout_Layout_guide_layout_fill, false);
a.recycle();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment