결과화면

 

 package com.example.demo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.*;

public class ProgressBarDemo2 extends Activity {
 protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);

  requestWindowFeature(Window.FEATURE_PROGRESS);
  setProgressBarVisibility(true); //위에 requestWindowFeature 를 true로 지정한거임..
  
  setContentView(R.layout.progress_2);

 }
}

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

    <ProgressBar android:id="@+android:id/progress_large"
        style="?android:attr/progressBarStyleLarge"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <ProgressBar android:id="@+android:id/progress"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <ProgressBar android:id="@+android:id/progress_small"
        style="?android:attr/progressBarStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <ProgressBar android:id="@+android:id/progress_small_title"
        style="?android:attr/progressBarStyleSmallTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

</LinearLayout>

 

'2020년도 이전 > [WebSig] Android' 카테고리의 다른 글

SeekBar Demo  (0) 2013.08.13
ProgressBar Demo3  (0) 2013.08.13
ProgressBar Demo1  (0) 2013.08.13
Image Demo  (0) 2013.08.13
AutoText Demo 자동완성 텍스트뷰  (0) 2013.08.13

+ Recent posts