FlyRefresh

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

  • 所有者: race604/FlyRefresh
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者race604/FlyRefresh
主编程语言Java
编程语言Java (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2015-05-28 10:19:34
推送于2016-03-14 13:15:48
最后一次提交2016-03-14 21:15:48
发布数2
最新版本名称v2.0.0 (发布于 )
第一版名称v1.0.2 (发布于 )
用户参与
星数2.8k
关注者数107
派生数544
提交数43
已启用问题?
问题数13
打开的问题数5
拉请求数2
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?