CopyPastor

Detecting plagiarism made easy.

Score: 0.8007882237434387; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-05-12
by Krishna

Original Post

Original - Posted on 2016-03-06
by PlanetAstro\_William



            
Present in both answers; Present only in the new answer; Present only in the old answer;

According to the [doc][1]
> With the release 23.0 there is an exciting new feature to the > LayoutManager API: auto-measurement! This allows a RecyclerView to > size itself based on the size of its contents. >This means that > previously unavailable scenarios, such as using WRAP_CONTENT >for a > dimension of the RecyclerView, are now possible. You’ll find all built > in LayoutManagers now support auto-measurement.
Due to this change, make sure to double check the layout parameters of your item views: previously ignored layout parameters (such as MATCH_PARENT in the scroll direction) will now be fully respected.
In your item layout you have to change:
android:layout_height="match_parent"
with
android:layout_height="wrap_content"

[1]: http://android-developers.blogspot.in/2016/02/android-support-library-232.html
Luksprog's answer to Gabriele Mariotti's answer works.
According to the [doc][1]
>With the release 2.3.0 there is an exciting new feature to the LayoutManager API: >**auto-measurement**! >This allows a **RecyclerView** to size itself based on the size of its contents. >This means that previously unavailable scenarios, such as using **WRAP_CONTENT** >for a dimension of the RecyclerView, are now possible. >You’ll find all built in LayoutManagers now support auto-measurement.
Due to this change, **make sure to double check the layout parameters** of your item views: **previously ignored layout parameters** (such as **MATCH_PARENT** in the scroll direction) will now be **fully respected**.
In your item layout you have to change:
android:layout_height="match_parent" with
android:layout_height="wrap_content"

[1]: http://android-developers.blogspot.sg/2016/02/android-support-library-232.html "doc"

        
Present in both answers; Present only in the new answer; Present only in the old answer;