FlyRefresh

The implementation of https://dribbble.com/shots/2067564-Replace

  • Owner: race604/FlyRefresh
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

FlyRefresh

The Android implementation of Replace, designed by Zee Youn.
I implement this as a FlyRefresh layout. The content of the layout can be any NestedScrollingChild, such as a RecyclerView, NestedScrollView, VerticalGridView, etc.
This library can also work with NestedScrollingParent as parent, such as CoordinatorLayout.

How it looks

flyrefresh

Features

How to use

Add Gradle dependency:

dependencies {
   compile 'com.race604.flyrefresh:library:2.0.0'
}

An example of basic usage in layout.xml:

<com.race604.flyrefresh.FlyRefreshLayout
  android:id="@+id/fly_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

    <android.support.v7.widget.RecyclerView
      android:id="@+id/list"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingTop="24dp"
      android:background="#FFFFFF"/>
</com.race604.flyrefresh.FlyRefreshLayout>

Or you can use PullHeaderLayout for more configurations, you can set custom attributes as shown below:

<declare-styleable name="PullHeaderLayout">
    <!-- hader size -->
    <attr name="phl_header_height" format="dimension" />
    <attr name="phl_header_expand_height" format="dimension" />
    <attr name="phl_header_shrink_height" format="dimension" />
    <!-- header view id -->
    <attr name="phl_header" format="reference" />
    <!-- content view id -->
    <attr name="phl_content" format="reference" />
    <!-- Float action button icon -->
    <attr name="phl_action" format="reference" />
</declare-styleable>

For more, please turn to the source code.

License

FlyRefresh is available under the MIT license.

Main metrics

Overview
Name With Ownerrace604/FlyRefresh
Primary LanguageJava
Program languageJava (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2015-05-28 10:19:34
Pushed At2016-03-14 13:15:48
Last Commit At2016-03-14 21:15:48
Release Count2
Last Release Namev2.0.0 (Posted on )
First Release Namev1.0.2 (Posted on )
用户参与
Stargazers Count2.8k
Watchers Count107
Fork Count544
Commits Count43
Has Issues Enabled
Issues Count13
Issue Open Count5
Pull Requests Count2
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private