build.gradle (Module: app) dependencies { implementation 'androidx.recyclerview:recyclerview:1.1.0' implementation 'androidx.cardview:cardview:1.0.0' } cardview_item.xml activity_main.xml ItemCard.kt package com.jwsoft.kotlinproject data class ItemCard(var imageRes: Int, var backgroundRes: Int, var name: String, var phone: String) MyRecyclerView.kt package com.jwsoft.kotlinproject import android..
UserDBStructure.java package com.jwsoft.javaproject; import android.provider.BaseColumns; public class UserDBStructure implements BaseColumns { public static final String TABLE_NAME = "user"; public static final String COLUMN_NAME = "name"; public static final String COLUMN_PHONE = "phone"; public static final String COLUMN_AGE = "age"; public static final String COLUMN_GENDER = "gender"; public..
UserDBStructure.kt package com.jwsoft.kotlinproject import android.provider.BaseColumns object UserDBStructure : BaseColumns { const val TABLE_NAME = "user" const val COLUMN_NAME = "name" const val COLUMN_AGE = "age" const val COLUMN_PHONE = "phone" const val COLUMN_GENDER = "gender" const val CREATE_USER_TABLE = "CREATE TABLE IF NOT EXISTS $TABLE_NAME (" + "${BaseColumns._ID} INTEGER PRIMARY KE..
ViewModel + DataBinding + LiveData + BindingAdapter build.gradle (Module: app) android { dataBinding { enabled = true } } MainViewModel.java package com.jwsoft.javaproject; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; public class MainViewModel extends ViewModel { public MutableLiveData liveColor = new MutableLiveData(); } BindingAdapters.java package com.jwsof..
ViewModel + DataBinding + LiveData + BindingAdapter build.gradle (Module: app) apply plugin: 'kotlin-kapt' android { dataBinding { enabled = true } } MainViewModel.kt package com.jwsoft.kotlinproject import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel class MainViewModel : ViewModel() { var liveColor: MutableLiveData = MutableLiveData() } BindingAdapters.kt package com...
- Total
- Today
- Yesterday
- Kotlin
- TabLayout
- Vue.js #Vue.js + javascript
- JSONObject
- 자바
- JSONArray
- View
- 코틀린
- java
- XML
- CoordinatorLayout
- coroutine
- ViewPager2
- Intent
- DataBinding
- handler
- 안드로이드
- James Kim
- fragment
- activity
- Livedata
- ArrayList
- recyclerview
- MVVM
- Design Pattern
- Android
- 혀가 길지 않은 개발자
- Architecture Pattern
- 안드로이드 #코틀린 #Android #Kotlin
- ViewModel
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |