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