
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
- recyclerview
- coroutine
- 혀가 길지 않은 개발자
- activity
- Vue.js #Vue.js + javascript
- Design Pattern
- java
- View
- CoordinatorLayout
- JSONArray
- Kotlin
- 안드로이드
- James Kim
- ViewPager2
- MVVM
- Android
- Livedata
- TabLayout
- ArrayList
- Architecture Pattern
- 자바
- XML
- JSONObject
- ViewModel
- 코틀린
- 안드로이드 #코틀린 #Android #Kotlin
- Intent
- handler
- DataBinding
- fragment
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |