简单灵活的广告计时组件

AdCountView

项目地址: flyou/AdCountView 
简介:简单灵活的广告计时组件
更多: 作者    提 Bug   
标签:
AdCountView- 广告计时页-

an simple CountView for advertisement

 

Step 1

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Step 2

Add the dependency

dependencies {
         compile 'com.github.flyou:AdCountView:1.0.4'
}

Step 3

 Input in your xml

         <com.flyou.AdCountView
        android:id="@+id/ad_count_view1"
        android:layout_width="80dp"
        android:layout_height="80dp"

        />

 Or some attribute

<com.flyou.AdCountView

        android:id="@+id/ad_count_view1"
        app:text="enter app"
        app:textColor="@color/base_white_50"
        app:textSize="16dp"
        app:backgroundColor="@color/base_black_50"
        app:outRingColor="@color/colorAccent"
        android:layout_width="80dp"
        android:layout_height="80dp"

        />

Step 4

     adCountView1 = (AdCountView) findViewById(R.id.ad_count_view1);
    adCountView1.start();

Or more configure

      adcountview1 = (AdCountView) findViewById(R.id.ad_count_view2);
    adcountview1.setbackgroundColor(getResources().getColor(R.color.base_white_80));
    adcountview1.setOutRingColor(getResources().getColor(R.color.colorAccent));
    adcountview1.setTextClor(getResources().getColor(R.color.base_black_100));
    adcountview1.setText("进入应用");
    adcountview1.start();

Or

    adcountview3 = (AdCountView) findViewById(R.id.ad_count_view3);
    adcountview3.setbackgroundColor(getResources().getColor(R.color.base_black_30));
    adcountview3.setOnClickListener(this);
    adcountview3.setOnStatusChangeListener(this);
    adcountview3.setOutRingColor(getResources().getColor(R.color.lightseagreen));
    adcountview3.setTextClor(getResources().getColor(R.color.base_white_100));
    adcountview3.setText("跳过广告");
    adcountview3.setTextSize(15);
    adcountview3.start();
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值