实现类似Google一些服务常用的进度加载动画:GoogleProgressBar
这是一个Android库用于创建类似Google一些服务常用的进度加载动画。
Dynamically
Add a ProgressBar to the xml layout:
Choose from the list of Drawable
s the one you want to use and place it in your code:
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ButterKnife.inject(this); mProgressBar.setIndeterminateDrawable(new your_list_option.Builder(this) .build()); //... }
your_list_option
can be replace for:
- FoldingCirclesDrawable
- GoogleMusicDicesDrawable
- NexusRotationCrossDrawable
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!