Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- notification
- Android
- Algorithm
- HTTP
- sqlite
- 백준
- ViewModel
- 알고리즘
- room
- onMeasure
- activity
- lifecycle
- View
- hilt
- 코틀린
- CoordinatorLayout
- BOJ
- recyclerview
- Behavior
- 알림
- LiveData
- CollapsingToolbarLayout
- CustomView
- AppBarLayout
- onLayout
- 안드로이드
- DataBinding
- kotlin
- Navigation
- Coroutine
Archives
- Today
- Total
목록ontainStyledAttributes (1)
개발일지

AttributeSet Android는 XML에서 View를 생성할 때 값을 설정할 수 있는 AttributeSet 인터페이스를 제공합니다. AttributeSet을 통해 View를 생성하면서 기본값을 쉽게 설정할 수 있습니다. View 만들기 View를 상속받고 기본 생성자를 설정한다. class ProgressView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : View(context, attrs, defStyleAttr, defStyleRes) { } AttributeSet 만들기 attr.xml에 선언하여 만들 수 있다. refe..
Android (안드로이드)/View
2021. 4. 29. 15:11