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

Related tags

App FlyRefresh
Overview

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.

Comments
  •  Failed to resolve attribute at index 6

    Failed to resolve attribute at index 6

    Caused by: java.lang.RuntimeException: Failed to resolve attribute at index 6 at android.content.res.TypedArray.getColorStateList(TypedArray.java:425) at android.support.design.widget.FloatingActionButton.(FloatingActionButton.java:91) at android.support.design.widget.FloatingActionButton.(FloatingActionButton.java:79) at android.support.design.widget.FloatingActionButton.(FloatingActionButton.java:75) at com.race604.flyrefresh.PullHeaderLayout.setActionDrawable(PullHeaderLayout.java:151) at com.race604.flyrefresh.FlyRefreshLayout.onFinishInflate(FlyRefreshLayout.java:58)

    opened by FrancisShi 4
  • 使用PullHeaderLayout之后,上推至最小高度时滑动异常,用的是api19的小米进行测试

    使用PullHeaderLayout之后,上推至最小高度时滑动异常,用的是api19的小米进行测试

    非常感谢你提供的优秀的源码,经测试,发现了如题目所描述的小问题 public int move(float deltaY) { float willTo; float consumed = deltaY; if (mScroll >= 0) { willTo = mScroll + deltaY; if (willTo < 0) { ... } } else if (willTo > mMaxHegiht) { //---------------->改成else if(willTo>mMaxScroll)解决了问题 consumed -= willTo - mMaxScroll; willTo = mMaxScroll; } } else { ... } ... }

    opened by zer0w0 1
  • gradle build will fail...

    gradle build will fail...

    like this(I use JCenter By Gradle ):

    xxx/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.0/res/values-v23/values-v23.xml Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'. Error:Execution failed for task ':app:processDebugResources'.

    com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/xxx/Developer/IDE/Android/adt-bundle-mac/sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 1 Information:BUILD FAILED Information:Total time: 1.197 secs Information:3 errors Information:0 warnings Information:See complete output in console

    opened by kxdd2002 1
  • solution of actionButton covering the paper plane

    solution of actionButton covering the paper plane

    95868369464712268 actionButton covered paper plane making it invisible.

    following code solves this problem. View actionButton = flyLayout.getHeaderActionButton(); ((FloatingActionButton) actionButton).setCompatElevation(0);

    opened by hatsune-miku 0
  • solution to resolve

    solution to resolve "data.time" err

    change data.time ---> data.date.getTime()

    public void onBindViewHolder(ItemViewHolder itemViewHolder, int i) { final ItemData data = mDataSet.get(i); ShapeDrawable drawable = new ShapeDrawable(new OvalShape()); drawable.getPaint().setColor(data.color); itemViewHolder.icon.setBackgroundDrawable(drawable); itemViewHolder.icon.setImageResource(data.icon); itemViewHolder.title.setText(data.title); itemViewHolder.subTitle.setText(dateFormat.format(data.date.getTime())); }

    opened by user8361 0
  • Getting more done in GitHub with ZenHub

    Getting more done in GitHub with ZenHub

    Hola! @flyerpan has created a ZenHub account for the race604 organization. ZenHub is the only project management tool integrated natively in GitHub – created specifically for fast-moving, software-driven teams.


    How do I use ZenHub?

    To get set up with ZenHub, all you have to do is download the browser extension and log in with your GitHub account. Once you do, you’ll get access to ZenHub’s complete feature-set immediately.

    What can ZenHub do?

    ZenHub adds a series of enhancements directly inside the GitHub UI:

    • Real-time, customizable task boards for GitHub issues;
    • Multi-Repository burndown charts, estimates, and velocity tracking based on GitHub Milestones;
    • Personal to-do lists and task prioritization;
    • Time-saving shortcuts – like a quick repo switcher, a “Move issue” button, and much more.

    Add ZenHub to GitHub

    Still curious? See more ZenHub features or read user reviews. This issue was written by your friendly ZenHub bot, posted by request from @flyerpan.

    ZenHub Board

    opened by flyerpan 0
Releases(v2.0.0)
Owner
吴晶
吴晶
An MVP Dribbble client for Android Mobile, Tablet, Wear and TV.

Bourbon ![Sidebar] (https://img.shields.io/badge/Sidebar-06%2F05%2F2016-orange.svg) Bourbon is a simple Dribbble client built for Android Mobile, Wear

Joe Birch 1.1k Dec 12, 2022
🏀 An Android app for dribbble.com

Mango Mango is an Android application for Dribbble. Inspired by Resplash, Plaid and Protein. Features ✨ Kotlin and RxKotlin: Yes, fully written in Kot

Li Zhao Tai Lang 657 Dec 22, 2022
A project which demonstrate how to develop a custom client on android for dribbble.com

##What is this? This is a project with custom client app on android for https://dribbble.com, which you can browse the popular icon and animation, lik

ZhangLei 599 Nov 14, 2022
Vanilla Music Player for Android (abandoned). Visit https://github.com/vanilla-music/vanilla for an actively developed fork

Translating You can help translate here. If your language isn't on the list, open an issue and I can add it. Building To build you will need: A Java c

Chris Eby 154 Dec 9, 2022
DNS over HTTPS / DNS over Tor / DNSCrypt client, firewall, and connection tracker for Android.

RethinkDNS + Firewall for Android An OpenSnitch-inspired firewall and network monitor + a pi-hole-inspired DNS over HTTPS client with blocklists. In o

null 1.1k Jan 5, 2023
Shows how to build a VPN app for Android using leaf: https://github.com/eycorsican/leaf .

aleaf Shows how to build a VPN app for Android using leaf. Dependencies Rust GCC/clang Make SDK NDK LLVM (Windows host only, see below) Building Linux

null 34 Sep 3, 2021
Solving all 25 days of the AOC 2021 event here: https://adventofcode.com

advent-of-code-2021-kotlin Welcome to the Advent of Code1 Kotlin project using the Advent of Code Kotlin Template delivered by JetBrains. In this repo

Mofe Ejegi 1 Dec 17, 2021
Implementation of Instagram with Material Design (originally based on Emmanuel Pacamalan's concept)

InstaMaterial Updated Current source code contains UI elements from Design Support Library. If you still want to see how custom implementations of e.g

Mirosław Stanek 5k Dec 27, 2022
Simple Mvp Implementation

Froggy Simple Mvp Implementation Download Gragle: compile 'ru.bullyboo.mvp:froggy:1.0.2' Maven: <dependency> <groupId>ru.bullyboo.mvp</groupId>

Rostislav Sharafutdinov 15 Mar 17, 2019
📒 NotyKT is a complete 💎Kotlin-stack (Backend + Android) 📱 application built to demonstrate the use of Modern development tools with best practices implementation🦸.

NotyKT ??️ NotyKT is the complete Kotlin-stack note taking ??️ application ?? built to demonstrate a use of Kotlin programming language in server-side

Shreyas Patil 1.4k Jan 8, 2023
Implementation of the application using the latest Android Tech Stack and the GitHub REST API.

GitHub Viewer Implementation of the application using the latest Android Tech Stack and the GitHub REST API. <!-- Github login. You can change the use

Vitaliy Zarubin 53 Jan 3, 2023
A project for the implementation of the car animation feature in most ride-sharing/ food delivery apps

CarAnimation This is a test project to practice the implementation of the car animation feature in most ride-sharing/ food delivery apps. Slowly build

Samurai 45 Dec 23, 2022
A simple implementation of the Android In-App Billing API.

Google In-App Billing Library v4+ A simple implementation of the Android In-App Billing API. It supports: in-app purchases (both consumable and non-co

Moisoni Ioan 79 Dec 12, 2022
Implementation of useful hooks inspired by React for Compose

useCompose React inspired hooks for Compose Installation Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the

Pavitra Golchha 20 Nov 14, 2022
New-SplashScreen-API - SplashScreen API Implementation Sample

SplashScreen API Implementation Sample Installation - Usage <style name="Theme.A

Arda Kazancı 0 Jan 3, 2022
Android News App built in kotlin with implementation of MVVM architecture, android navigation components and retrofit. Displays news to users allowing them to share and save news.

News-App Android news app built in kotlin that fetches news data from news api with Retrofit and displays news to users. This App follow MVVM architec

Raj Manjrekar 16 Dec 29, 2022
Cql-cds-hooks - HL7 CDS HOOKS Implementation with CQL support

CQL CDS HOOKS HL7 CDS HOOKS implementation with CQL (Clinical Quality Language)

PHAST 1 Jan 27, 2022
Glickotlin - Kotlin implementation of the Glicko2 algorithm

Glickotlin Glickotlin is a Kotlin implementation of the Glicko2 algorithm. Glick

Jules Tréhorel 0 Jan 29, 2022
Wandroid project based on Kotlin + JetPack + concurrent implementation of MVVM architecture for playing Android App

Wandroid project based on Kotlin + JetPack + concurrent implementation of MVVM architecture for playing Android App

null 32 Feb 13, 2022