Android图片轮播组件(多模式) android-image-indicator

码农软件 · 软件分类 · Android UI 组件 · 2019-04-26 20:26:56

软件介绍

一、简介

基于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~

本文地址:https://codercto.com/soft/d/4454.html

Linux内核完全剖析

Linux内核完全剖析

赵炯 / 机械工业出版社 / 2006-1 / 79.00元

本书对早期Linux操作系统内核全部代友文件进行了详细的剖析,旨在让读者在尽量短的时间内对Linux的工作机理获得全面而深刻的理解,为进一步学习和研究Linux系统打下坚实的基础。虽然选择的版本较低,但该内核已能够正常编译运行,并且其中已包括了Linux工作原理的精髓。书中首先以Linux源代码版本的变迁为主线,简要介绍了Lin-ux系统的发展历史,同时着重说明了各个内核版本之间的主要区别和改进方......一起来看看 《Linux内核完全剖析》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

SHA 加密
SHA 加密

SHA 加密工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器