All Projects → alibaba → Statemanager

alibaba / Statemanager

Licence: apache-2.0
对Android通用展示的封装,解决Loading、Exception及常用业务的复用问题

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Statemanager

Listr2
NodeJS Task List derived from the best! Create beautiful CLI interfaces via easy and logical to implement task lists that feel alive and interactive.
Stars: ✭ 73 (-48.59%)
Mutual labels:  loading
Mkloader
Beautiful and smooth custom loading views
Stars: ✭ 1,377 (+869.72%)
Mutual labels:  loading
Buttonloading
Button Loading
Stars: ✭ 130 (-8.45%)
Mutual labels:  loading
Svg Loaders React
React adaptation of the SVG Loaders library by Sam Herbert
Stars: ✭ 75 (-47.18%)
Mutual labels:  loading
Avloadingindicatorview
DEPRECATED
Stars: ✭ 9,585 (+6650%)
Mutual labels:  loading
Eclipseloading
🌞 日食加载动画
Stars: ✭ 114 (-19.72%)
Mutual labels:  loading
Placeholder Loading
Simple and flexible, css only, content placeholder loading animation. https://zalog.github.io/placeholder-loading/
Stars: ✭ 1,137 (+700.7%)
Mutual labels:  loading
Ng Block Ui
Block UI Loader/Spinner for Angular
Stars: ✭ 135 (-4.93%)
Mutual labels:  loading
React Native Loading Spinner Overlay
💈 React Native loading spinner overlay
Stars: ✭ 1,369 (+864.08%)
Mutual labels:  loading
Cosin
Android loading view library 📊🍭
Stars: ✭ 129 (-9.15%)
Mutual labels:  loading
Inifiniterecyclerview
Library for implementing endless loading list easily in Android applications
Stars: ✭ 79 (-44.37%)
Mutual labels:  loading
Terminal layout
The project help you to quickly build layouts in terminal,cross-platform(一个跨平台的命令行ui布局工具)
Stars: ✭ 98 (-30.99%)
Mutual labels:  loading
Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+7508.45%)
Mutual labels:  loading
Flutter shimmer
A package provides an easy way to add shimmer effect in Flutter project
Stars: ✭ 1,188 (+736.62%)
Mutual labels:  loading
Waveloadingview
An Android library providing to realize wave loading effect.
Stars: ✭ 1,658 (+1067.61%)
Mutual labels:  loading
Iprogresshud
An elegant, lightweight and responsive progress HUD for iOS app with very simple usage. Available 32 indicators by NVActivityIndicatorView.
Stars: ✭ 66 (-53.52%)
Mutual labels:  loading
Arrowdrawable
纯Paint实现的一个射箭效果,可用作Loading动画。
Stars: ✭ 103 (-27.46%)
Mutual labels:  loading
Fluky
🎲 Loading based on random icons
Stars: ✭ 136 (-4.23%)
Mutual labels:  loading
React Content Loader
⚪ SVG-Powered component to easily create skeleton loadings.
Stars: ✭ 11,830 (+8230.99%)
Mutual labels:  loading
Vue Loaders
Vue + loaders.css
Stars: ✭ 127 (-10.56%)
Mutual labels:  loading

Download

StateManager

标签(空格分隔): Android


Gradle

dependencies {
    compile 'com.alipictures:statemanager:1.0.0'
}

Maven

<dependency>
  <groupId>com.alipictures</groupId>
  <artifactId>statemanager</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

Usage

mStateLayout.showState("loading_state");

是什么?

更加方便的加载各种状态,各个状态事件的回调,支持在Theme里面设置对应状态样式

包含了Loading状态,Exception状态,Net Error状态,EmptyData状态及核心态,通过调用showState()方法,可以方便的显示各种状态

特性

  1. 只有在显示对应状态的时候,才会加载View(需要提前注册好各种需要的状态)
  2. 支持定制各种状态的文案及视觉
  3. 支持拓展自己的状态
  4. 支持局部或者全局显示各种状态
  5. 支持Activity、Fragment、Layout及帮助类的方式
  6. 支持在RecyclerView中单个Item变换各种状态

用法

1. StateLayout

这是一个自定义布局容器,可以直接在xml文件中使用

2. StateManagerActivity

需要继承StateManagerActivity,其余流程保持不变

2. StateManagerFragment

需要实现getLayoutId(),返回对应的布局资源,在initViewContent()方法中,初始化UI,其余流程保持不变

其他

  1. 在某些情况下,replaceFragment觉得太重了,可以直接实现一个State,来显示对应的业务,更加的轻量级
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].