일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- AppBarLayout
- CoordinatorLayout
- LiveData
- View
- activity
- CustomView
- ViewModel
- onMeasure
- lifecycle
- Android
- Coroutine
- room
- 알림
- Behavior
- kotlin
- recyclerview
- Navigation
- Algorithm
- sqlite
- HTTP
- 알고리즘
- hilt
- 코틀린
- onLayout
- BOJ
- 백준
- CollapsingToolbarLayout
- 안드로이드
- notification
- DataBinding
- Today
- Total
목록커스텀 뷰 (2)
개발일지
View와 ViewGroup을 상속받아서 직접 View를 만들 수 있지만 기존의 정의된 View나 ViewGroup을 상속 받아서 기능을 확장할 수 있다. View 만들기 class LoginButtonView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : MaterialCardView(context, attrs, defStyleAttr), DataBinding { override val binding: ViewLoginButtonBinding by lazy { DataBinding.get(this, R.layout.view_login_b..
CustomeViewGroup Android에서 기본으로 제공하는 ViewGroup(Layout) 대신 ViewGroup을 상속받아 UI를 구축할 수 있다. OverlapLayout 전체코드 class OverlapLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : ViewGroup(context, attrs, defStyleAttr, defStyleRes) { override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { var width = 0 var height..