MVVM (Model + View + ViewModel) build.gradle (Module: app) android { dataBinding { enabled = true } } 데이터 바인딩 사용하기 위함 activity_main.xml bindingadapter/BindingAdapters.java package com.jwsoft.javaproject.bindingadapter; import android.view.View; import android.widget.LinearLayout; import androidx.databinding.BindingAdapter; public class BindingAdapters { @BindingAdapter("android:JamesVisible") pu..
MVP (Model + View + Presenter) activity_main.xml model/Player.java package com.jwsoft.javaproject.model; public enum Player { O, X, NULL } model/Cell.java package com.jwsoft.javaproject.model; public class Cell { private Player player; public void setPlayer(Player player) { this.player = player; } public Player getPlayer() { return this.player; } } model/Board.java package com.jwsoft.javaproject..
MVC (Model + View + Controller) activity_main.xml View 역할 model/Player.java package com.jwsoft.model; public enum Player { O, X } model/Cell.java package com.jwsoft.model; public class Cell { private Player value; public void setValue(Player value) { this.value = value; } public Player getValue() { return value; } } model/Board.java package com.jwsoft.model; public class Board { private Cell[][]..
Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK activity_main.xml activity_sub.xml SubActivity.java package com.jwsoft.javaproject; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class SubActivity extends AppCompatActivity { private Button btnSub; @Override p..
- Total
- Today
- Yesterday
- 자바
- Intent
- James Kim
- Design Pattern
- 안드로이드 #코틀린 #Android #Kotlin
- 혀가 길지 않은 개발자
- MVVM
- handler
- coroutine
- 코틀린
- Android
- Livedata
- View
- XML
- fragment
- recyclerview
- JSONObject
- DataBinding
- TabLayout
- activity
- Architecture Pattern
- Vue.js #Vue.js + javascript
- 안드로이드
- ViewModel
- java
- ViewPager2
- CoordinatorLayout
- Kotlin
- JSONArray
- ArrayList
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |