蔬菜小程序的开发全流程详解
527
2022-11-04
两个交织的小球的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:
attr | description |
---|---|
firstBallColor | the color of the first ball |
secondBallColor | the color of the second ball |
animDuration | the animation duration |
LICENSE
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~