
MVVM (Model + View + ViewModel) build.gradle (Module: app) apply plugin: 'kotlin-kapt' // BindingAdapter 사용하기 위함 android { dataBinding { enabled = true } kotlinOptions { // by viewModels() 사용하기 위함 jvmTarget = "1.8" } } dependencies { // by viewModels() 사용하기 위함 implementation 'androidx.fragment:fragment-ktx:1.2.5' } activity_main.xml binding/BindingAdapters.kt package com.jwsoft.kotlinproject.bin..

MVVM (Model + View + ViewModel) build.gradle (Module: app) android { dataBinding { enabled = true } } 데이터 바인딩 사용하기 위함 activity_main.xml bindingadapter/BindingAdapters.java package com.jwsoft.javaproject.bindingadapter; import android.view.View; import android.widget.LinearLayout; import androidx.databinding.BindingAdapter; public class BindingAdapters { @BindingAdapter("android:JamesVisible") pu..

MVC (Model + View + Controller) activity_main.xml View 역할 model/Player.java package com.jwsoft.model; public enum Player { O, X } model/Cell.java package com.jwsoft.model; public class Cell { private Player value; public void setValue(Player value) { this.value = value; } public Player getValue() { return value; } } model/Board.java package com.jwsoft.model; public class Board { private Cell[][]..
- Total
- Today
- Yesterday
- fragment
- ArrayList
- java
- James Kim
- View
- CoordinatorLayout
- ViewPager2
- Kotlin
- TabLayout
- handler
- Vue.js #Vue.js + javascript
- Design Pattern
- 코틀린
- DataBinding
- Architecture Pattern
- 자바
- JSONArray
- recyclerview
- activity
- MVVM
- coroutine
- XML
- ViewModel
- Livedata
- 안드로이드 #코틀린 #Android #Kotlin
- 혀가 길지 않은 개발자
- Android
- Intent
- 안드로이드
- JSONObject
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |