Android图片轮播组件(多模式) android-image-indicator
- 授权协议: GPL
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/panxw/android-image-indicator
软件介绍
一、简介
基于ViewPager的用户指引,广告图片Gallery,及自动轮播图片Gallery,使用起来超简单!
GitHub地址:https://github.com/panxw/android-image-indicator
二、使用示例
1、广告图片Gallery
<com.allthelucky.common.view.ImageIndicatorView
android:id="@+id/indicate_view"
android:layout_width="match_parent"
android:layout_height="160dp" />
代码:
imageIndicatorView = (ImageIndicatorView) findViewById(R.id.indicate_view);
final Integer[] resArray = new Integer[] { R.drawable.ic_launcher, R.drawable.ic_launcher };
imageIndicatorView.setupLayoutByDrawable(resArray);
imageIndicatorView.show();
2、自动轮播模式
<com.allthelucky.common.view.AutoImageIndicatorView
android:id="@+id/auto_indicate_view"
android:layout_width="match_parent"
android:layout_height="160dp" />
代码:
autoImageIndicatorView = (AutoImageIndicatorView) findViewById(R.id.auto_indicate_view);
final Integer[] resArray = new Integer[] { R.drawable.ic_launcher, R.drawable.ic_launcher };
autoImageIndicatorView.setBroadcastEnable(true);
autoImageIndicatorView.setBroadCastTimes(5);//循环播放5次
autoImageIndicatorView.setBroadcastTimeIntevel(2 * 1000, 3 * 1000);//播放启动时间及间隔
autoImageIndicatorView.setupLayoutByDrawable(resArray);//图片
autoImageIndicatorView.show();
效果图:
3、用户指引模式
this.imageIndicatorView = (ImageIndicatorView) findViewById(R.id.guide_indicate_view);
final Integer[] resArray = new Integer[] { R.drawable.ic_launcher, R.drawable.ic_launcher };
imageIndicatorView.setupLayoutByDrawable(resArray);
imageIndicatorView.setIndicateStyle(ImageIndicatorView.INDICATE_USERGUIDE_STYLE);
imageIndicatorView.show();
效果图:
PS:
顺便宣传下自己的GitHub,https://github.com/panxw, 欢迎来Follow~
从界面到网络空间
(美)海姆 / 金吾伦/刘钢 / 上海科技教育出版社 / 2000-7 / 16.40元
计算机急剧改变了20世纪的生活。今天,我们凭借遍及全球的计算机网络加速了过去以广播、报纸和电视形式进行的交流。思想风驰电掣般在全球翻飞。仅在角落中潜伏着已完善的虚拟实在。在虚拟实在吕,我们能将自己沉浸于感官模拟,不仅对现实世界,也对假想世界。当我们开始在真实世界与虚拟世界之间转换时,迈克尔·海姆问,我们对实在的感觉如何改变?在〈从界面到网络空间〉中,海姆探讨了这一问题,以及信息时代其他哲学问题。他......一起来看看 《从界面到网络空间》 这本书的介绍吧!
