RecyclerView that does not scroll and shows all items

RecyclerView that does not scroll and shows all items



’It’s pretty simple, simply set the RecyclerView’s height to wrap_content.

You might also benefit from disabling nested scrolling on the recycler view, like so:

RecyclerView recycler = (RecyclerView) findViewById(R.id.recycler);
recycler.setNestedScrollingEnabled(false);
RecyclerView that does not scroll and shows all items RecyclerView that does not scroll and shows all items Reviewed by Anonymous on May 29, 2018 Rating: 5

No comments:

Java Ternary Operator

Java Ternary Operator Java ternary operator is the only conditional operator that takes three operands. Java ternary operator is a one l...

Powered by Blogger.