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

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 android.graphics.Color; import android.os.Bundle; import android.view.View; import com.jwsoft.javaproject.databinding.ActivityMainBinding; public class MainAct..
- Total
- Today
- Yesterday
- JSONArray
- Architecture Pattern
- ViewPager2
- Android
- XML
- recyclerview
- View
- Livedata
- Intent
- ArrayList
- 자바
- CoordinatorLayout
- java
- Kotlin
- Design Pattern
- fragment
- MVVM
- 안드로이드
- handler
- James Kim
- TabLayout
- 혀가 길지 않은 개발자
- DataBinding
- 코틀린
- activity
- Vue.js #Vue.js + javascript
- ViewModel
- coroutine
- 안드로이드 #코틀린 #Android #Kotlin
- JSONObject
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |