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 with CardView-based items is not visible under PullRefreshLayout #29

Open
oradkovsky opened this issue Dec 2, 2015 · 0 comments

Comments

@oradkovsky
Copy link

Hi,

More details:

  1. general layout:

<com.baoyz.widget.PullRefreshLayout
    android:id="@+id/swipe_refresh_layout_plans"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.v7.widget.RecyclerView
        android:id="@+id/plan_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true" />

...

  1. item layout:

<android.support.v7.widget.CardView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/keyline_left_medium_mini"
    android:layout_marginRight="@dimen/keyline_left_medium_mini"
    android:layout_marginTop="@dimen/keyline_left_medium_mini"
    android:elevation="@dimen/cardview_default_elevation"
    app:cardCornerRadius="@dimen/cardview_default_radius">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

...

Once I move RecyclerView outside of PullRefreshLayout, it works as expected.

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