java simpleimage_Java SimpleImageBanner類代碼示例

import com.flyco.bannersamples.banner.SimpleImageBanner; //導入依賴的package包/類

private void sib_the_most_comlex_usage() {

SimpleImageBanner sib = ViewFindUtils.find(decorView, R.id.sib_the_most_comlex_usage);

sib

/** methods in BaseIndicatorBanner */

// .setIndicatorStyle(BaseIndicaorBanner.STYLE_CORNER_RECTANGLE)//set indicator style

// .setIndicatorWidth(6) //set indicator width

// .setIndicatorHeight(6) //set indicator height

// .setIndicatorGap(8) //set gap btween two indicators

// .setIndicatorCornerRadius(3) //set indicator corner raduis

.setSelectAnimClass(ZoomInEnter.class) //set indicator select anim

/** methods in BaseBanner */

// .setBarColor(Color.parseColor("#88000000")) //set bootom bar color

// .barPadding(5, 2, 5, 2) //set bottom bar padding

// .setBarShowWhenLast(true) //set bottom bar show or not when the position is the last

// .setTextColor(Color.parseColor("#ffffff")) //set title text color

// .setTextSize(12.5f) //set title text size

// .setTitleShow(true) //set title show or not

// .setIndicatorShow(true) //set indicator show or not

// .setDelay(2) //setDelay before start scroll

// .setPeriod(10) //scroll setPeriod

.setSource(DataProvider.getList()) //data source list

.setTransformerClass(ZoomOutSlideTransformer.class) //set page transformer

.startScroll(); //start scroll,the last method to call

sib.setOnItemClickL(new SimpleImageBanner.OnItemClickL() {

@Override

public void onItemClick(int position) {

T.showShort(context, "position--->" + position);

}

});

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值