Add horizontal indeterminate progress bar into ApiDemos

Change-Id: Iae72019d5ecdfbc710d01bd341b6de058d3b665a
This commit is contained in:
Teng-Hui Zhu
2015-11-03 15:07:31 -08:00
parent ac7c153cce
commit 6324dbbae2
2 changed files with 6 additions and 6 deletions

View File

@@ -38,4 +38,10 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ProgressBar android:id="@+id/progress_horizontal"
style="?android:attr/progressBarStyleHorizontal"
android:indeterminate="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>

View File

@@ -33,12 +33,6 @@ public class ProgressBar2 extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Request for the progress bar to be shown in the title
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.progressbar_2);
// Make sure the progress bar is visible
setProgressBarVisibility(true);
}
}