实现类似Google一些服务常用的进度加载动画:GoogleProgressBar

jopen 10年前

这是一个Android库用于创建类似Google一些服务常用的进度加载动画。

实现类似Google一些服务常用的进度加载动画:GoogleProgressBar 实现类似Google一些服务常用的进度加载动画:GoogleProgressBar 实现类似Google一些服务常用的进度加载动画:GoogleProgressBar

实现类似Google一些服务常用的进度加载动画:GoogleProgressBar

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

项目主页:http://www.open-open.com/lib/view/home/1409217508760