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..
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..
DataBinding + LiveData + BindingAdapter build.gradle (Module: app) android { dataBinding { enabled = true } } BindingAdapters.java package com.jwsoft.javaproject; import android.view.View; import androidx.annotation.ColorInt; import androidx.databinding.BindingAdapter; public class BindingAdapters { @BindingAdapter("android:visibleJW") public static void setVisible(View view, Boolean bool) { if ..
build.gradle (Module: app) android { dataBinding { enabled = true } } activity_main.xml MainActivity.java package com.jwsoft.javaproject; import androidx.appcompat.app.AppCompatActivity; import androidx.databinding.DataBindingUtil; import androidx.lifecycle.MutableLiveData; import android.os.Bundle; import android.view.View; import com.jwsoft.javaproject.databinding.ActivityMainBinding; public c..
activity_main.xml MainActivity.java package com.jwsoft.javaproject; import androidx.appcompat.app.AppCompatActivity; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.Observer; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MainActivity extends AppCompatActivity { private TextView tvName; private B..
- Total
- Today
- Yesterday
- MVVM
- 안드로이드 #코틀린 #Android #Kotlin
- TabLayout
- Design Pattern
- JSONArray
- fragment
- coroutine
- activity
- Vue.js #Vue.js + javascript
- 혀가 길지 않은 개발자
- JSONObject
- Kotlin
- DataBinding
- Architecture Pattern
- View
- 자바
- XML
- 코틀린
- Intent
- ArrayList
- 안드로이드
- James Kim
- handler
- Android
- ViewModel
- ViewPager2
- CoordinatorLayout
- Livedata
- java
- recyclerview
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |