Skip to content

Commit

Permalink
write README
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Jing committed May 28, 2015
1 parent 291af72 commit bd53f43
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,48 @@
#FlyReresh
#FlyRefresh
The Android implementation of [Replace](https://dribbble.com/shots/2067564-Replace), designed by [@Zee Youn](https://dribbble.com/zeeyoung).
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
[!Replace](./flyrefresh.gif)

#Features
* Default minimize configuration for [Replace](https://dribbble.com/shots/2067564-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.
Binary file added images/designed.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/flyrefresh.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bd53f43

Please sign in to comment.