ANDROID. ChipsLayoutManager (SpanLayoutManager, FlowLayoutManager). A custom layout manager for RecyclerView which mimicric TextView span behaviour, flow layouts behaviour with support of amazing recyclerView features
Apache License 2.0
3.25k
stars
362
forks
source link
Support initialization throw XML app:layoutManager attribute #32
This should only require implementing a standard constructor (never tried tough):
public ChipsLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ChipsLayoutManager, defStyleAttr, defStyleRes);
// read attributes here
a.recycle();
}
I can work on this myself if you are willing to accept contributions.
Hi,
Can you support the initialization through XML?
Ideally I would like to be able to do something like this:
This should only require implementing a standard constructor (never tried tough):
I can work on this myself if you are willing to accept contributions.