Android类似电商抢购倒计时源码

Android类似电商抢购倒计时源码,第1张

概述https://github.com/CaMnter/EasyCountDownTextureView使用说明:1Gradledependencies{compile'com.camnter.easycountdowntextureview:library:1.1'}2Attributes<declare-styleablename="EasyCountDownTextureView">  <attrname=&quot

https://github.com/CaMnter/EasyCountDownTextureVIEw

使用说明:1Gradle

dependencIEs {

compile 'com.camnter.easycountdowntexturevIEw:library:1.1'

}

2Attributes

<declare-styleable name="EasyCountDownTextureVIEw">

    <attr name="easyCountRectWIDth" format="dimension" />

    <attr name="easyCountRectHeight" format="dimension" />

    <attr name="easyCountRecTradius" format="dimension" />

    <attr name="easyCountRectSpacing" format="dimension" />

    <attr name="easyCountTimecolor" format="color" />

    <attr name="easyCountColoncolor" format="color" />

    <attr name="easyCountBackgroundcolor" format="color" />

    <attr name="easyCountColonSize" format="dimension" />

    <attr name="easyCountTimeSize" format="dimension" />

    <attr name="easyCountHour" format="integer" />

    <attr name="easyCountMinute" format="integer" />

    <attr name="easyCountSecond" format="integer" />

</declare-styleable>

 

3xml

<relativeLayout

    androID:layout_wIDth="wrap_content"

    androID:layout_height="wrap_content"

    androID:layout_marginBottom="50dp"

    androID:background="#ffffffff">

    <ImageVIEw

        androID:layout_wIDth="196dp"

        androID:layout_height="158dp"

        androID:layout_margintop="26dp"

        androID:scaleType="centerCrop"

        androID:src="@mipmap/bg_fruit" />

    <com.camnter.easycountdowntexturevIEw.EasyCountDownTextureVIEw

        androID:layout_wIDth="wrap_content"

        androID:layout_height="wrap_content"

        app:easyCountHour="6"

        app:easyCountMinute="6"

        app:easyCountSecond="26" />

</relativeLayout>

 

4XML

Animatable animatable=draweeController.getAnimatable();

if (animatable.isRunning()){

        animatable.stop();

 }else{

        animatable.start();

 }

总结

以上是内存溢出为你收集整理的Android类似电商抢购倒计时源码全部内容,希望文章能够帮你解决Android类似电商抢购倒计时源码所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1086277.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存