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

DataBinding + LiveData + BindingAdapter build.gradle (Module: app) apply plugin: 'kotlin-kapt' android { dataBinding { enabled = true } } BindingAdapters.kt package com.jwsoft.kotlinproject import android.view.View import androidx.annotation.ColorInt import androidx.databinding.BindingAdapter object BindingAdapters { @JvmStatic @BindingAdapter("android:visibleJW") fun setVisible(view: View, bool..

build.gradle (Module: app) android { dataBinding { enabled = true } } activity_main.xml MainActivity.kt package com.jwsoft.kotlinproject import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import androidx.databinding.DataBindingUtil import androidx.lifecycle.MutableLiveData import com.jwsoft.kotlinproject.databinding.ActivityMainBinding class MainActivity : AppCompatActivity..

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.kt package com.jwsoft.kotlinproject import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import androidx.lifecycle.MutableLiveData import androidx.lifecycle.Observer import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() { private var liveName: MutableLiveData = MutableLiveData() override fun onCreate(save..
- Total
- Today
- Yesterday
- MVVM
- ViewPager2
- Kotlin
- coroutine
- View
- Design Pattern
- fragment
- ArrayList
- java
- Livedata
- 안드로이드
- Android
- activity
- JSONArray
- 자바
- JSONObject
- 혀가 길지 않은 개발자
- DataBinding
- recyclerview
- Architecture Pattern
- James Kim
- Intent
- Vue.js #Vue.js + javascript
- 코틀린
- CoordinatorLayout
- TabLayout
- handler
- 안드로이드 #코틀린 #Android #Kotlin
- XML
- 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 |