Android-->打造流行的无数据空布局页面
2017-01-01 17:19
381 查看
看图:
实现方式,就是在一个自定义View里面, 绘制一个大的圆角矩形, 和三个小的圆角矩形.
支持的属性,
源码地址:https://github.com/angcyo/EmptyView
实现方式,就是在一个自定义View里面, 绘制一个大的圆角矩形, 和三个小的圆角矩形.
支持的属性,
<?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="EmptyView"> <!--颜色--> <attr name="ev_default_color" format="color"/> <!--有多少个组, 在高度warp_content属性中生效, match_parent属性自动通过高度计算数量--> <attr name="ev_group_count" format="integer"/> <!--每一组的高度, 一组由一个大的三个小的矩形组成--> <attr name="ev_group_height" format="dimension"/> <!--大矩形和小矩形之间的空隙--> <attr name="ev_h_space" format="dimension"/> <!--组与组之间和小矩形之间的竖直空隙--> <attr name="ev_v_space" format="dimension"/> <!--圆角的大小--> <attr name="ev_round_radius" format="dimension"/> </declare-styleable> </resources>
源码地址:https://github.com/angcyo/EmptyView
相关文章推荐
- Android--->LinearLayout页面布局方式
- Android布局设计之ExpandableList绑定XML数据构成级联、item布局页面的控件查找及配置child事件,自定义适配显示内容
- Android 用ListView打造了一个独特的页面展示 , 简称ListView多布局
- 界面布局与Android数据存储
- [android]webview访问jsp页面,能否从jsp页面获取数据
- Android之ListActivity 布局与数据绑定
- android基础学习<一>--->五大布局对象Framelayout,Linearlayout,Relativelayout,Tablelayout,AbsoluteLayout
- NHibernate+spring.net+jquery打造UI控件库系列(两部分)------页面布局
- 多种方式实现Android页面布局的切换
- Android中级教程之(五)----->不同Activity之间的数据传递,Bundle对象的使用!
- Android之页面5大布局
- android下PDF格式的地图数据的显示------超大PDF页面显示策略(二)
- 使用Ext Viewport进行页面布局时Panel中的sumit按钮无法提交表单数据
- 【原创】Android 判断默认数据网络是否为开,若关则跳转到网络配置页面
- android View页面布局总结 最全总结。
- Android页面布局后续详解
- Android学习第三天:页面布局和常用控件
- Android之ListActivity:布局与数据绑定
- Android修改Gallery页面布局
- android下PDF格式的地图数据的显示------超大PDF页面显示策略(一)