Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add defStyleAttr by default #1241

Open
osipxd opened this issue Oct 5, 2021 · 0 comments
Open

Add defStyleAttr by default #1241

osipxd opened this issue Oct 5, 2021 · 0 comments

Comments

@osipxd
Copy link
Contributor

osipxd commented Oct 5, 2021

For now EpoxyRecyclerView not declares attribute defStyleAttr, but RecyclerView uses there R.attr.recyclerViewStyle.
It is useful to have the ability to change the style for all recyclers in one place. For example, disable overscroll by default.

open class EpoxyRecyclerView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : RecyclerView(context, attrs, defStyleAttr) {

I can create a merge request with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant