Skip to content

wha000tif/FlyRefresh

This branch is 14 commits behind race604/FlyRefresh:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b6d61b1 · May 28, 2015

History

29 Commits
May 28, 2015
May 28, 2015
May 18, 2015
May 28, 2015
May 28, 2015
May 18, 2015
May 28, 2015
May 28, 2015
May 28, 2015
May 18, 2015
May 18, 2015
May 18, 2015
May 18, 2015
May 18, 2015

Repository files navigation

#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 view, such as ListView, RecyclerView, ScrollView, etc.

#How it looks flyrefresh

#Features

  • Default minimize configuration for Replace animation
  • Expendable/Shrinkable header
  • Support custom header view
  • Support custom refresh animation

#How to use The basie usage in layou xml liks blow:

    <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 cofigurations, you can set custome attributes 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.

#Lincense FlyRefresh is available under the MIT license.

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%