Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A pull to refresh view for android, the RecyclerRefreshLayout is based on the SwipeRefreshLayout. highly customizable, code simplicity, etc

Notifications You must be signed in to change notification settings

freshOfAndroid/RecyclerRefreshLayout

Repository files navigation

RecyclerRefreshLayout

Android Arsenal

Using RecyclerRefreshLayout requires two steps:

  • Step one: use the RecyclerRefreshLayout in XML
  • Step two: call the function setOnRefreshListener

Features

  • Custom refresh components: setRefreshView(View, LayoutParams);
  • Custom refresh state components: setRefreshStateView(View);

Usage

<?xml version="1.0" encoding="utf-8"?>
<app.dinus.com.refresh.RecyclerRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@+id/refresh_layout"
 android:layout_width="match_parent"
 android:layout_height="match_parent">
 <android.support.v7.widget.RecyclerView
 android:id="@+id/recycler_view"
 android:layout_width="match_parent"
 android:layout_height="match_parent" />
</app.dinus.com.refresh.RecyclerRefreshLayout>
mRecyclerRefreshLayout.setOnRefreshListener(OnRefreshListener);
mRecyclerRefreshLayout.setRefreshStateView(View);
mRecyclerRefreshLayout.setRefreshView(View, LayoutParams);

License

Copyright 2015-2019 dinus
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
 http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

A pull to refresh view for android, the RecyclerRefreshLayout is based on the SwipeRefreshLayout. highly customizable, code simplicity, etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%

AltStyle によって変換されたページ (->オリジナル) /