我想停止在显示的进度条内盘旋。请告诉我在xml文件中应用的必要设置或代码中可用于停止此动画的任何方法。 我也在我的UI中创建了一个进度条。 The Progress bar is black in color and the animation represents the progress that I would like to stop
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/progressBar"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:background="@android:color/background_light"
android:minWidth="300dp"
android:maxWidth="300dp"
/>
答案 0 :(得分:0)
使用Android.Views.View.ProgressBar包
<rule name="Redirect example.com to www" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example.com$" />
</conditions>
<action type="Redirect" url="http://www.example.com/{R:0}" />
</rule>
答案 1 :(得分:-1)
试试这种方式
//init progress bar
ProgressDialog progressBar;
// prepare for a progress bar dialog
progressBar = new ProgressDialog(v.getContext());
progressBar.setCancelable(true);
progressBar.setMessage("File downloading ...");
progressBar.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
progressBar.setProgress(0);
progressBar.setMax(100);
//show progress bar
progressBar.show();
//reset progress bar status
progressBarStatus = 0;
// close the progress bar dialog
progressBar.dismiss();
祝你好运