All Projects → HarinTrivedi → AnimatedPullToRefresh-master

HarinTrivedi / AnimatedPullToRefresh-master

Licence: Apache-2.0 license
A Cool pull to refresh widget provided with character animation in header with user defined text. Customise your widget and show off your home screen!!

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to AnimatedPullToRefresh-master

Pullrefresh
前端, 下拉刷新
Stars: ✭ 7 (-81.58%)
Mutual labels:  pulltorefresh, pull-to-refresh
Pullrefreshlayout
下拉刷新,上拉加载,真实的回弹(overscroll)效果(媲美qq),且大小只有37KB(是其他主流刷新库或回弹库的1/2,1/3,甚至是1/4),同时,自定义header和footer,可以实现任何你想的到的功能(例如:自动触发加载更多、二级刷新等)
Stars: ✭ 639 (+1581.58%)
Mutual labels:  pulltorefresh, pull-to-refresh
Web Pull To Refresh
A native-like JavaScript pull to refresh implementation for the web.
Stars: ✭ 530 (+1294.74%)
Mutual labels:  pulltorefresh, pull-to-refresh
Springview
🔥 A custom view pull to refresh,support ScrollView,ListView,RecyclerView,WebView and all another views, easy to use
Stars: ✭ 1,936 (+4994.74%)
Mutual labels:  pulltorefresh, pull-to-refresh
Xrefreshlayout
【已过时,不再更新,请使用更强大的SmartRefreshLayout!】A refresh layout(无侵入下拉刷新和加载布局), can refresh RecyclerView for all LayoutManager, NestedScrollView。
Stars: ✭ 127 (+234.21%)
Mutual labels:  pulltorefresh, pull-to-refresh
Pulltorefresh H5 Iscroll
基于IScroll5的PullToRefresh实现.。提供多套皮肤机制,便于拓展!
Stars: ✭ 56 (+47.37%)
Mutual labels:  pulltorefresh, pull-to-refresh
Smartrefreshlayout
🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
Stars: ✭ 23,185 (+60913.16%)
Mutual labels:  pulltorefresh, pull-to-refresh
Minirefresh
优雅的H5 下拉刷新。零依赖,高性能,多主题,易拓展。(A Graceful HTML5 Drop-Down-Refresh Plugin. )
Stars: ✭ 1,525 (+3913.16%)
Mutual labels:  pulltorefresh, pull-to-refresh
Xrefreshview
一个万能的android下拉上拉刷新的框架,完美支持recyclerview
Stars: ✭ 1,685 (+4334.21%)
Mutual labels:  pulltorefresh, pull-to-refresh
XCPullToLoadMoreListView
XCPullToLoadMoreListView-下拉加载更多ListView控件(仿QQ、微信聊天对话列表控件)
Stars: ✭ 24 (-36.84%)
Mutual labels:  pulltorefresh, pull-to-refresh
react-native-3d-swiper
A performant, javascript-only 3d swiper for react-native
Stars: ✭ 36 (-5.26%)
Mutual labels:  animated
react-native-card-animated-modal
An animated modal from a card item in a list for React Native.
Stars: ✭ 93 (+144.74%)
Mutual labels:  animated
vue-data-loading
Another component for infinite scroll and pull down/up to load data.
Stars: ✭ 63 (+65.79%)
Mutual labels:  pull-to-refresh
IrregularGradient
Create animated irregular gradients in SwiftUI.
Stars: ✭ 127 (+234.21%)
Mutual labels:  animated
WatermelonMessenger
React Native App using react, redux, sagas, hooks, react navigation v5
Stars: ✭ 63 (+65.79%)
Mutual labels:  animated
JB2A DnD5e
Templates of spells from the DnD5e ruleset (SRD and PHB), to use on FoundryVTT
Stars: ✭ 28 (-26.32%)
Mutual labels:  animated
smart-react-native-app
React Native 下拉刷新, 分页加载, 侧边栏, Tab导航学习(Android Studio, ES6语法)
Stars: ✭ 56 (+47.37%)
Mutual labels:  pull-to-refresh
tulip-scroll
📜 多场景的下拉组件和更多,https://artiely.gitee.io/scroll-docs/
Stars: ✭ 44 (+15.79%)
Mutual labels:  pull-to-refresh
react-native-segment-control
Swipeable SegmentedControl component for React Native apps
Stars: ✭ 21 (-44.74%)
Mutual labels:  animated
komorebi
A beautiful and customizable wallpaper manager for Linux
Stars: ✭ 231 (+507.89%)
Mutual labels:  animated

AnimatedPullToRefresh


An simple general purpose UI library to add pull to refresh functionality with cool header text animation, which provides different customizations which allows to change header text, animation, color animation etc. Choose combination of your choice and rock your app screen.


Feature

  • Easy integration
  • Easy customisation
  • Allows to customise text color, background color, animations etc of your choice.

Demo

  • Simple demo 1

Simple demo 1

  • Simple demo 2

Simple demo 2

  • Custom fonts

Custom fonts

  • Customize animation

Customize animation

  • Customize animation iteration

Customize animation iteration


How to integrate

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency

	dependencies {
	        implementation 'com.github.HarinTrivedi:AnimatedPullToRefresh-master:1.0.4'
	}

How to use

1. Inside layout xml

Add namespace in layout like:

xmlns:app="http://schemas.android.com/apk/res-auto"

Use AnimatedPullToRefresh in xml layout like:

<com.hlab.animatedPullToRefresh.AnimatedPullToRefreshLayout
    android:id="@+id/pullToRefreshLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:animationSpeed="fast"
    app:headerBackgroundColor="@color/colorWhite"
    app:headerLoopAnimIteration="1"
    app:headerLoopAnimation="zoom"
    app:headerText="@string/str_loading"
    app:headerTextAnimIteration="1"
    app:headerTextAnimation="rotateCW"
    app:headerTextColor="@color/colorLabelDark"
    app:headerTextColorAnimationEnabled="true"
    app:headerTextFontFamily="@font/lobster"> // new font support

<!-- Your view -->

</com.hlab.animatedPullToRefresh.AnimatedPullToRefreshLayout>

Attributes

  • headerText : Text to display in header

  • animationSpeed : Slow / Fast

  • headerBackgroundColor : Background color of the header view

  • headerLoopAnimation : zoom / fade

  • headerTextAnimation : rotateCW(clockwise) / rotateACW(anti-clockwise) / fade / zoom

  • headerTextColor : Color of the text inside the header

  • headerTextFontPath : Custom font path from assets

  • headerTextColorAnimationEnabled : To enable / disable color changing animation of text

  • headerTextAnimIteration : No of iteration to perform on single character animation (default 1)

  • headerLoopAnimIteration : No of iteration to perform on whole text animation (default11)

  • headerTextFontFamily: Custom font family from font resource // New feature

2. Inside Activity/Fragment

... implements AnimatedPullToRefreshLayout.OnRefreshListener {
...
AnimatedPullToRefreshLayout mPullToRefreshLayout = (AnimatedPullToRefreshLayout) findViewById(R.id.pullToRefreshLayout);
// Provide array of colors to add color animation of your choice 
mPullToRefreshLayout.setColorAnimationArray(new int[]{Color.CYAN, Color.RED, Color.YELLOW, Color.MAGENTA});
// Set refresh listener
mPullToRefreshLayout.setOnRefreshListener(this);
...
}

More is coming, Enjoy and post issues/suggestion if you love to use this 👍


LICENSE

Copyright 2020 Harry's Lab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].