两个交织的小球的loading view

网友投稿 527 2022-11-04

两个交织的小球的loading view

两个交织的小球的loading view

IntertwineLoadingView

A two intertwined balls loading view.

中文

More

The default effect

The effect of custom animation duration & color

Use

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

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

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

dependencies { implementation 'com.github.samlss:IntertwineLoadingView:1.0'}

in layout.xml:

in java code:

intertwineLoadingView.setDuration(1000); //Set animation duration intertwineLoadingView.setFirstBallColor(Color.RED); //Set the color of the first ball intertwineLoadingView.setSecondBallColor(Color.YELLOW); //Set the color of the second ball intertwineLoadingView.start(); //start animation intertwineLoadingView.stop(); //stop animation intertwineLoadingView.pause(); //pause animation intertwineLoadingView.resume(); //resume animation intertwineLoadingView.release(); //Can 'released' when you don't need to use the loading view, for example in the activity's onDestroy()

Attributes description:

attrdescription
firstBallColorthe color of the first ball
secondBallColorthe color of the second ball
animDurationthe animation duration

LICENSE

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:win10、win11禁用windows defender服务工具Defender Control下载。Antimalware Service Executable占用CPU高的问题解决
下一篇:深入理解 sudo 与 su 之间的区别
相关文章

 发表评论

暂时没有评论,来抢沙发吧~