仿外卖订单状态控件 TimeLineView
- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/WrBug/timelineview
- 软件文档: https://github.com/WrBug/timelineview
软件介绍
TimeLineView
一款仿外卖订单状态的开源控件,支持自定义文字,颜色,字体大小等功能
显示效果
USAGE
Gradle
gradle 2行
compile 'com.wrbug:timelineview:1.0.0'
Maven
vbscript-html 7行
< dependency>< groupId>com.wrbug< artifactId>timelineview< version>1.0.0< type>pom
布局中添加
xml 11行
< com.wrbug.opensources.TimeLineView android:id= "@+id/timeLineView3" android:layout_width= "match_parent" android:layout_height= "50dp" android:layout_margin= "20dp" app:preCircleColor= "#0044ff" app:preLineColor= "#333333" app:startedCircleColor= "#880000" app:startedLineColor= "#ff0000" app:textSize= "12sp"/>
Activity 添加
java 8行
TimeLineView mView=(TimeLineView) findViewById(R.id.timeLineView3); Listdata = new ArrayList<>(); data.add( "等候支付"); data.add( "等候商家接单"); data.add( "等候配送"); data.add( "等候送达"); mView.setPointStrings(data, 2);
添加更多设置
java 13行
TimeLineView mView=(TimeLineView) findViewById(R.id.timeLineView3); mView.builder() .pointStrings(txts, 1) .startedCircleColor(Color.BLUE) .underwayCircleColor(Color.BLUE) .preCircleColor(Color.GRAY) .startedLineColor(Color.BLUE) .preLineColor(Color.GRAY) .startedStringColor(Color.BLUE) .underwayStringColor(Color.BLUE) .preStringColor(Color.GRAY) .load(); //开始绘制
方法/字段说明
区块链革命
[加]唐塔普斯科特(Don Tapscott)、[加]亚力克斯·塔普斯科特(Alex Tapscott) / 中信出版集团股份有限公司 / 2016-9 / 69
(1)国际大腕“数字经济之父”继畅销书《维基经济学》之后再出力作! (2)一本真正全景式描述区块链理论及应用的巨著! (3)苹果共同创始人史蒂夫·沃兹尼亚克、世界经济论坛创始人和论坛主席克劳斯·施瓦布、网景及硅谷安德森·霍洛维茨风险投资公司创始人马克·安德森、麦肯锡董事长兼全球总裁鲍达民、 百事公司首席执行官卢英德、丹·舒尔曼 Paypal公司首席执行官等全球政治界、学术界和商界精英联......一起来看看 《区块链革命》 这本书的介绍吧!
