# Android - ProgressTitle : android, ProgressTitle
```java
package exam.Widget;
import android.app.*;
import android.os.*;
import android.view.*;
import android.widget.*;
import exam.AndroidExam.*;
public class ProgressTitle extends Activity {
int mProg;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_PROGRESS);
setContentView(R.layout.widget_progresstitle);
mProg=5000;
setProgress(mProg);
setProgressBarVisibility(true);
findViewById(R.id.decfirst).setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
if (mProg >= 200) mProg -= 200;
setProgress(mProg);
}
});
findViewById(R.id.incfirst).setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
if (mProg <= 9800) mProg += 200;
setProgress(mProg);
}
});
}
}
```
#### widget_progresstitle.xml
```xml
```java
package exam.Widget;
import android.app.*;
import android.os.*;
import android.view.*;
import android.widget.*;
import exam.AndroidExam.*;
public class ProgressTitle2 extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.widget_progresstitle2);
findViewById(R.id.start).setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
setProgressBarIndeterminateVisibility(true);
}
});
findViewById(R.id.stop).setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
setProgressBarIndeterminateVisibility(false);
}
});
}
}
```
#### widget_progresstitle2.xml
```xml
```
댓글