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

RecyclerView - wrap_content #9

Open
SinghKaranbir opened this issue Jun 24, 2017 · 3 comments
Open

RecyclerView - wrap_content #9

SinghKaranbir opened this issue Jun 24, 2017 · 3 comments

Comments

@SinghKaranbir
Copy link

It looks like recycler view wrap content is not working on height when in Horizontal Direction

@PawelDedio
Copy link

Is there any solution for that?

@skybdemq
Copy link

After removing the following code, it works fine

if (state.getItemCount() != 0 && !state.didStructureChange()) {
if (BuildConfig.DEBUG) {
Log.d(TAG, "onLayoutChildren: ignore extra layout step");
}
return;
}

@sangchengjiang
Copy link

After removing the following code, it works fine

if (state.getItemCount() != 0 && !state.didStructureChange()) { if (BuildConfig.DEBUG) { Log.d(TAG, "onLayoutChildren: ignore extra layout step"); } return; }

还需要复写isAutoMeasureEnabled并返回true

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

4 participants