Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

pull-up loads #39

Closed
guoyoujin opened this issue May 26, 2015 · 5 comments
Closed

pull-up loads #39

guoyoujin opened this issue May 26, 2015 · 5 comments

Comments

@guoyoujin
Copy link

Hello, I want to use in this project the drop-down refresh, pull-up loads more can be achieved, can you help me

@florent37
Copy link
Owner

you want to use SwipeRefreshLayout ?

@guoyoujin
Copy link
Author

yes,Can this project combines SwipeRefreshLayout to use it, I don't know how to realize the drop-down refresh, you can help me, thank you

@florent37
Copy link
Owner

I did this on a tutorial : http://tutos-android-france.com/ajouter-un-pull-to-refresh-avec-swiperefreshlayout/
it's in french but you can read java & xml

<android.support.v4.widget.SwipeRefreshLayout
    android:id="@+id/swipeRefreshLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androud.support.v4.widget.RecyclerView
        android:id="@+id/recyclerView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</android.support.v4.widget.SwipeRefreshLayout>



mSwipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipeRefreshLayout);
    mSwipeRefreshLayout.setOnRefreshListener(this);


@Override
public void onRefresh() {
    //your code
}

@guoyoujin
Copy link
Author

Thank you, I'm trying to put you said embedded in, thank you for your answer, thank you very much!

@florent37
Copy link
Owner

don't hesitate 👍

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

No branches or pull requests

2 participants