ProgressBar
作者:互联网
常用属性详解
1、android:max:进度条的最大值
2、android:progress:进度条已完成进度值
3、android:indeterminate:如果设置成true,则进度条不精确显示进度
4、style="?android:attr/progressBarStyleHorizontal" 水平进度条
//隐藏显示 public void fbClick(View view) { if (pb.getVisibility() == View.GONE) { pb.setVisibility(View.VISIBLE); } else { pb.setVisibility(View.GONE); } } //加载进度 public void fbClick2(View view) { int progress = pb2.getProgress(); progress+=10; pb2.setProgress(progress); }
标签:GONE,进度条,ProgressBar,pb,progress,android,View 来源: https://www.cnblogs.com/fangbin-caoqiaomeng/p/15135350.html