大家好,我现在定义的是小圆型的滚动条
<ProgressBar
android:id="@+id/bar"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="20sp"/>在程序中定义是这样的Bar = (ProgressBar) this.findViewById(R.id.bar);我现在想在加载完内容之后,叫这个滚动条消失,怎么实现呢
我用Bar.setVisibility(1);咋不好用呢??
大家帮帮忙啊~~AndroidJava布局
<ProgressBar
android:id="@+id/bar"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="20sp"/>在程序中定义是这样的Bar = (ProgressBar) this.findViewById(R.id.bar);我现在想在加载完内容之后,叫这个滚动条消失,怎么实现呢
我用Bar.setVisibility(1);咋不好用呢??
大家帮帮忙啊~~AndroidJava布局
1是什么?
你应该用View.INVISIBLE
View.GONE