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