일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Kotlin
- 66챌린지
- scope function
- DataBinding
- Android ViewPager2
- 습관만들기
- Android ProgressBar
- 알고리즘 자바
- Android WebView
- 영어공부
- 안드로이드 fcm
- Java
- 영어독립365
- MVP Architecture
- Android DataBinding
- Android 12
- android recyclerview
- 프로그래머스 알고리즘
- Android Navigation
- Android
- WebView
- Kotlin FCM
- Android Interceptor
- 안드로이드 카카오 로그인
- 카카오 알고리즘
- 안드로이드 갤러리 접근
- Android 12 대응
- 안드로이드
- OkHttp Interceptor
- Android Jetpack
Archives
- Today
- Total
Developer Geek
안드로이드 프로그래스바 본문
반응형
안드로이드 원형 프로그래스바 in Kotlin
안드로이드 프로그레스바란 Android ProgressBar in Kotlin ProgressBar는 사용자에게 작업 진행률을 나타내는 사용자 인터페이스 컨트롤이다. 예를 들면 인터넷에서 파일을 다운로드하거나 업로드 할 때,
devgeek.tistory.com
Android ProgressBar in Kotlin
ProgressBar는 사용자에게 작업 진행률을 나타내는 사용자 인터페이스 컨트롤이다. 예를 들면 인터넷에서 파일을 다운로드하거나 업로드 할 때, 우리는 ProgressBar을 통해서 작업 진행 상황을 파악할 수 있다.
ProgressBar에는 2가지 모드가 있다.
- Determinate ProgressBar
- Indeterminate ProgressBar
Determinate ProgressBar
일반적으로, 우리는 Determinate progress 모드를 사용한다. 왜냐하면 이 progressbar는 작업의 진행정도를 퍼센티지(%)와 같이 나타내기 때문이다.
Indeterminate ProgressBar
Indeterminate ProgressBar는 아쉽게도 작업의 진행률을 확인할 수는 없다. 그래서 대게 진행정도를 파악할 수 없을 때 사용한다. 예를들면 API 통신을 통해 데이터를 읽어 올 때, 즉 서버에서 데이터를 받는 정도를 파악할 수 없는 경우 사용한다.
Attribute of ProgressBar Widgets
XML Attributes | Description |
---|---|
android:id | Used to uniquely identify the control |
android:min | Used to set minimum value |
android:max | Used to set the maximum value |
android:progress | Used to set the default progress integer value between 0 and max |
android:minHeight | Used to set the height of the progress bar |
android:minWidth | Used to set the width of the progress bar |
android:background | Used to set the background color for progress bar |
android:indeterminate | Used to enable indeterminate progress mode |
android:padding | Used to set the padding for left, right, top, or bottom of the progress bar. |
질문과 잘못된 점에 대해 말씀해주시는 건 언제나 환영입니다.
zero5.two4@gmail.com
반응형
'안드로이드 > View' 카테고리의 다른 글
안드로이드 막대 프로그레스바 구현 예제 in Kotlin (0) | 2022.06.25 |
---|---|
안드로이드 원형 프로그레스바 in Kotlin (0) | 2022.06.20 |
Android Fragment 생명주기 (0) | 2022.06.06 |
Android SwipeRefreshLayout In Kotlin(당겨서 새로고침) (0) | 2022.05.29 |
안드로이드 RecyclerView 최상(하)단 여백 (0) | 2022.01.21 |
Comments