Skip to content

Commit

Permalink
Added additional constructors to FlowLayoutManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-iL committed Mar 6, 2016
1 parent f7ae30d commit 6972a02
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ public class FlowLayoutManager extends RecyclerView.LayoutManager {
List<LineDefinition> lines = new ArrayList<>();
List<ViewDefinition> views = new ArrayList<>();

public FlowLayoutManager() {
this(new FlowLayoutProperties());
}

public FlowLayoutManager(FlowLayoutProperties properties) {
this.properties = properties;
}

public FlowLayoutManager(Context ctx, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
this(FlowLayoutProperties.fromProperties(getProperties(ctx, attrs, defStyleAttr, defStyleRes)));
}

This comment has been minimized.

Copy link
@Dev-iL

Dev-iL Mar 6, 2016

Author Owner

@Override
Expand Down

0 comments on commit 6972a02

Please sign in to comment.