CoordinatorLayout + ViewPager2 + TabLayout build.gradle (Module: app) dependencies { // material design implementation 'com.google.android.material:material:1.1.0' // ViewPager2 implementation 'androidx.viewpager2:viewpager2:1.0.0' // RecyclerView implementation 'androidx.recyclerview:recyclerview:1.1.0' } styles.xml recyclerview_item.xml RecyclerViewAdapter.kt package com.jwsoft.kotlinproject i..
Retrofit2 + Coroutine build.gradle (Module: app) android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { // Retrofit2 implementation 'com.squareup.retrofit2:retrofit:2.7.1' implementation 'com.squareup.retrofit2:converter-gson:2.7.1' implementation 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2' //..
build.gradle (Module: app) android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { // com.google.gson implementation 'com.squareup.retrofit2:converter-gson:2.7.1' } Privacy.kt package com.jwsoft.kotlinproject data class Privacy ( var height: Int, var weight: Int ) User.kt package com.jwsoft.kotlinproject data class Use..
MainActivity.kt package com.jwsoft.kotlinproject import android.os.Bundle import android.util.Log import androidx.appcompat.app.AppCompatActivity import org.json.JSONException import org.json.JSONObject class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) try { val jsonString = "{..
MVVM + Coroutine build.gradle (Module: app) apply plugin: 'kotlin-kapt' dependencies { // RecyclerView implementation 'androidx.recyclerview:recyclerview:1.1.0' // CardView implementation 'androidx.cardview:cardview:1.0.0' // Room implementation 'androidx.room:room-runtime:2.2.5' kapt 'androidx.room:room-compiler:2.2.5' testImplementation 'androidx.room:room-testing:2.2.5' // Coroutine implement..
- Total
- Today
- Yesterday
- Kotlin
- 안드로이드 #코틀린 #Android #Kotlin
- 코틀린
- 혀가 길지 않은 개발자
- Intent
- coroutine
- ViewPager2
- James Kim
- JSONArray
- MVVM
- Livedata
- CoordinatorLayout
- java
- 자바
- activity
- JSONObject
- recyclerview
- ViewModel
- 안드로이드
- Android
- Design Pattern
- XML
- handler
- DataBinding
- TabLayout
- Vue.js #Vue.js + javascript
- fragment
- Architecture Pattern
- View
- 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 |