All Projects → yangchaojiang → Demoloadview

yangchaojiang / Demoloadview

切换加载中,加载失败,加载成功布局,定义一个LoadViewHelper所有界面通用,通同时也支持单个自定义无需添加布局中view, 大大降低耦合性

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Demoloadview

React Content Loader
⚪ SVG-Powered component to easily create skeleton loadings.
Stars: ✭ 11,830 (+5326.61%)
Mutual labels:  loading
Vue Ui For Pc
基于Vue2.x的一套PC端UI组件,包括了Carousel 跑马灯、Cascader 级联、Checkbox 多选框、Collapse 折叠面板、DatePicker 日期选择、Dialog 对话框、Form 表单、Input 输入框、InputNumber 数字输入框、Layer 弹窗层、Loading 加载、Menu 菜单、Page 分页、Progress 进度条、Radio 单选框、SelectDropDown 仿select、Switch 开关、Table 表格、Tabs 标签页、Textarea 文本框、Tooltip 文字提示、BackTop 返回顶部、steps 步骤条、Transfer 穿梭框、Tree 树形、Upload 文件上传、Lazy 图片懒加载、Loading 加载、Pagination 分页等等
Stars: ✭ 156 (-28.44%)
Mutual labels:  loading
Loadingbar
极简使用的解耦Loading组件 - http://blog.csdn.net/aa464971/article/details/70197394
Stars: ✭ 179 (-17.89%)
Mutual labels:  loading
Fluky
🎲 Loading based on random icons
Stars: ✭ 136 (-37.61%)
Mutual labels:  loading
Vue Full Loading
Full overlay loading with spinner for Vue
Stars: ✭ 148 (-32.11%)
Mutual labels:  loading
Notiflix
Notiflix is a JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
Stars: ✭ 172 (-21.1%)
Mutual labels:  loading
Buttonloading
Button Loading
Stars: ✭ 130 (-40.37%)
Mutual labels:  loading
Flutter spinkit
✨ A collection of loading indicators animated with flutter. Heavily Inspired by http://tobiasahlin.com/spinkit.
Stars: ✭ 2,411 (+1005.96%)
Mutual labels:  loading
Vue Wait
Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
Stars: ✭ 1,869 (+757.34%)
Mutual labels:  loading
Discovery
Discoveries on Sustainable Loading research
Stars: ✭ 174 (-20.18%)
Mutual labels:  loading
Statemanager
对Android通用展示的封装,解决Loading、Exception及常用业务的复用问题
Stars: ✭ 142 (-34.86%)
Mutual labels:  loading
Skeletonloadingview
SkeletonLoadingView(Shimmer) with Kotlin in Android💀💀
Stars: ✭ 146 (-33.03%)
Mutual labels:  loading
React Nprogress
⌛️ A React primitive for building slim progress bars.
Stars: ✭ 173 (-20.64%)
Mutual labels:  loading
Ng Block Ui
Block UI Loader/Spinner for Angular
Stars: ✭ 135 (-38.07%)
Mutual labels:  loading
Tfpopup
🚀🚀🚀TFPopup不生产弹框,它只是弹框的弹出工🚀🚀🚀默认支持多种动画方式一行调用,支持完全自定义动画.
Stars: ✭ 182 (-16.51%)
Mutual labels:  loading
Waveloadingview
An Android library providing to realize wave loading effect.
Stars: ✭ 1,658 (+660.55%)
Mutual labels:  loading
Hgplaceholders
Nice library to show placeholders and Empty States for any UITableView/UICollectionView in your project
Stars: ✭ 2,048 (+839.45%)
Mutual labels:  loading
React Native Animated Spinkit
A collection of loading indicators for React Native
Stars: ✭ 186 (-14.68%)
Mutual labels:  loading
Statefulviewcontroller
Placeholder views based on content, loading, error or empty states
Stars: ✭ 2,139 (+881.19%)
Mutual labels:  loading
Pagestatemanager
manage the loading,emtpy,error state of page, use in xml or just in code
Stars: ✭ 173 (-20.64%)
Mutual labels:  loading

LoadViewHelper

#切换加载中,加载失败,加载成功布局,支持全局和局部之自定义布局 定义一个LoadViewHelper所有界面通用,无需添加布局中view, 大大降低耦合性。

LoadViewHelper

通过Gradle抓取:

compile 'com.ycjiang:loadviewhelper:1.1.2'

在你Framgment 或者ACtivity

    LoadViewHelper helper = new LoadViewHelper(listView);  
	    //将listview切换成显示加载中布局

		helper.showLoading("加载中...");

		//将listview切换成显示空数据布局
		helper.showEmpty("暂无数据", "重试");
		//或者
		helper.showEmpty();
	//	监听重试按钮
		  helper.setListener(new OnLoadViewListener() {
                    @Override
                    public void onRetryClick() {
                        Toast.makeText(getApplicationContext(), "点击了重试", Toast.LENGTH_SHORT).show();
                    }
      });

可以 自定义 加载中,加载失败,加载为空 布局 实现自己加载效果

使用全部自定义布局

public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
            LoadViewHelper.getBuilder()
                .setLoadEmpty(R.layout.this_empty)
                .setLoadError(R.layout.this_error)
                .setLoadIng(R.layout.this_load_ing);
    }
}

使用局部自定义布局

  helper.setLoadEmpty(view)
  helper.setLoadEmpty(resId);
  helper.getLoadIng(view);
  helper.getLoadIng(resId);

更新日志

1.1.2

  • 1.修复点击重试出现一直处于loading中.

1.1.0

  • 1.优化内部处理,代码更简洁 .
  • 1.增加谈出谈入效果。
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].