BPProgressDialog.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:ITSM 作者:
@Override protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.progress_dialog);
  getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  ivProgress = (ImageView) findViewById(R.id.ivProgress);
  //tvMessage = (TextView) findViewById(R.id.tvProgressMsg);
  //if (!StringUtil.isEmpty(message)) {
  //  tvMessage.setVisibility(View.VISIBLE);
  //  tvMessage.setText(this.message);
  //} else {
  //  tvMessage.setVisibility(View.GONE);
  //}
  animation =
      new RotateAnimation(0f, 360f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF,
          0.5f);
  animation.setInterpolator(new LinearInterpolator());
  animation.setRepeatCount(Animation.INFINITE);
  animation.setDuration(500);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号