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
- AppBarLayout
- 백준
- Behavior
- CollapsingToolbarLayout
- lifecycle
- 알고리즘
- DataBinding
- room
- ViewModel
- sqlite
- HTTP
- BOJ
- CustomView
- 코틀린
- notification
- activity
- View
- Android
- Coroutine
- 알림
- onMeasure
- LiveData
- recyclerview
- hilt
- Navigation
- Algorithm
- onLayout
- kotlin
- CoordinatorLayout
- 안드로이드
Archives
- Today
- Total
목록바인딩 객체 (1)
개발일지

바인딩 객체 Databinding을 사용해서 Data를 결합하기 위해서는 DataBindingUtil이나 바인딩 클래스를 사용해서 바인딩 객체를 얻어야한다. Activity DataBindingUtil.setContentView를 사용해서 얻는다. abstract class BaseActivity(private val layoutId: Int) : AppCompatActivity() { protected lateinit var binding: VB override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) init() } protected open fun init() { initViewDataBinding(..
Android (안드로이드)/Databinding
2021. 1. 21. 02:58