
UI 작업은 Main Thread에서 해야 하는데 만약 Worker Thread에서 UI 변경을 해야 한다면 Handler를 이용하여 Main Thread와 연결해 주어야 한다. 단, Handler는 Main Thread에서 생성이 되어야 한다. activity_main.xml MainActivity.java package com.jwsoft.javaproject; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; i..

build.gradle (Module: app) dependencies { // 리사이클러뷰 추가 implementation 'androidx.recyclerview:recyclerview:1.1.0' } activity_main.xml recyclerview_item.xml RecyclerViewAdapter.java package com.jwsoft.javaproject; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.No..
- Total
- Today
- Yesterday
- XML
- ViewModel
- java
- ViewPager2
- activity
- 자바
- recyclerview
- MVVM
- James Kim
- fragment
- CoordinatorLayout
- Design Pattern
- Intent
- 안드로이드 #코틀린 #Android #Kotlin
- coroutine
- TabLayout
- View
- DataBinding
- handler
- JSONArray
- Android
- Architecture Pattern
- JSONObject
- Livedata
- 혀가 길지 않은 개발자
- 코틀린
- Kotlin
- 안드로이드
- Vue.js #Vue.js + javascript
- 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 |