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