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

MVC MVC는 Model View Controller로 어플리케이션 구성을 크게 3가지로 나누어 관리하는 디자인 패턴입니다. Model Model은 데이터베이스에 접근하여 데이터를 변경하거나 추출하여 가공하는 역할을 합니다. class Model { fun findByQuery(query: String): String { return "Hello World : $query" } fun save(data: String) { // Do Something } } 특징 View와 Controller와 독립되어야 하며 데이터에 관련된 로직만 있어야 한다. View View는 UI를 사용자에게 표시하는 역할을 합니다. class View( private val data: String ) { init { print..
Design Pattern (디자인 패턴)
2021. 10. 5. 15:55