Add horizontal indeterminate progress bar into ApiDemos
Change-Id: Iae72019d5ecdfbc710d01bd341b6de058d3b665a
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user