Round ProgressBar vs Flat ProgressBar : Progress « UI « Android






Round ProgressBar vs Flat ProgressBar

   
package app.test;

import android.app.Activity;
import android.os.Bundle;
import android.widget.CheckBox;

public class Test extends Activity {
  CheckBox plain_cb;
  CheckBox serif_cb;
  CheckBox italic_cb;
  CheckBox bold_cb;

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setTitle("ProgressBarActivity");
    setContentView(R.layout.main);
  }

}

//main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:layout_width="fill_parent"
  android:layout_height="wrap_content">

<TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Round ProgressBar" />       
<ProgressBar 
   android:id="@+id/progress_bar"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"/>

<TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Flat ProgressBar" />      
<ProgressBar android:id="@+id/progress_horizontal"
        style="?android:attr/progressBarStyleHorizontal"
        android:layout_width="200dip"
        android:layout_height="wrap_content"
        android:max="100"
        android:progress="50"
        android:secondaryProgress="75" />
</LinearLayout>

   
    
    
  








Related examples in the same category

1.Using progress bar
2.Using Thread and Progress bar
3.Use progress bars as widgets and in the title bar. The progress bar in the title will be shown until the progress is complete, at which point it fades away.
4.Using indeterminate progress bars as widgets and in the window's title bar.
5.Use an indeterminate progress indicator in the window's title bar.
6.Progress Monitor