
build.gradle (Module: app) android { dataBinding { enabled = true } kotlinOptions { jvmTarget = "1.8" // viewModels() 사용 } } dependencies { // viewModels() 사용 implementation 'androidx.fragment:fragment-ktx:1.2.5' // ViewPager2 사용 implementation 'androidx.viewpager2:viewpager2:1.0.0' } activity_main.xml fragment_red.xml fragment_green.xml fragment_blue.xml fragment_white.xml fragment_black.xml Ma..

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..

build.gradle (Module: app) dependencies { // viewModelScope implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0' // Coroutine implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7' } activity_main.xml activity_sub.xml MainActivity.kt package com.jwsoft.kotlinproject import android.content.Intent im..

build.gradle (Module: app) dependencies { // Coroutine implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.4' } activity_sub.xml SubActivity.kt package com.jwsoft.kotlinproject import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import kotlinx.android.synthetic..
- Total
- Today
- Yesterday
- ViewModel
- ArrayList
- java
- TabLayout
- XML
- Vue.js #Vue.js + javascript
- fragment
- Intent
- Kotlin
- Livedata
- ViewPager2
- JSONObject
- activity
- 자바
- coroutine
- JSONArray
- 안드로이드 #코틀린 #Android #Kotlin
- CoordinatorLayout
- View
- 코틀린
- MVVM
- recyclerview
- 안드로이드
- 혀가 길지 않은 개발자
- handler
- Architecture Pattern
- Android
- DataBinding
- Design Pattern
- James Kim
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |