实现类似Google一些服务常用的进度加载动画:GoogleProgressBar
jopen
10年前
这是一个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