본문 바로가기

오늘의 공부/android

[모두의 안드로이드]4일차: 프로그레스바로 대기상태 표시하기

 

참고서적:모두의 안드로이드

*제가 직접 사서 참고하고 있습니다.

개발환경:우분투 20.04 lts


[1.프로젝트 생성]

 

 

[2.activity_main.xml에 위젯에 프로그레스바 추가하기]

 

*코드

    <ProgressBar
        android:id="@+id/progressBar"
        style="?android:attr/progressBarStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="13dp"
        android:layout_marginTop="60dp"
        app:layout_constraintStart_toStartOf="@+id/textView"
        app:layout_constraintTop_toBottomOf="@+id/textView" />

 

[3.실행 화면]