使用说明:1Gradlehttps://github.com/CaMnter/EasyCountDownTextureVIEw
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类似电商抢购倒计时源码所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)