實現類似Google一些服務常用的進度加載動畫:GoogleProgressBar
這是一個Android庫用于創建類似Google一些服務常用的進度加載動畫。

Dynamically
Add a ProgressBar to the xml layout:
Choose from the list of Drawables 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 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!