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 |
Tags
- notification
- AppBarLayout
- recyclerview
- DataBinding
- HTTP
- LiveData
- sqlite
- View
- Behavior
- CoordinatorLayout
- 알고리즘
- room
- Coroutine
- 안드로이드
- CollapsingToolbarLayout
- onMeasure
- ViewModel
- activity
- Algorithm
- Android
- 백준
- hilt
- kotlin
- lifecycle
- CustomView
- onLayout
- 알림
- BOJ
- Navigation
- 코틀린
Archives
- Today
- Total
목록declare-styleable (1)
개발일지
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/blAoOl/btq3NIuMpUd/RNKtrZ9q5nXLwFpY4oeQ4k/img.png)
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