build.gradle (Module: app) dependencies { implementation 'androidx.viewpager2:viewpager2:1.0.0' } viewpager_fragment.xml MyFragment.kt package com.jwsoft.kotlinproject import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.fragment.app.Fragment class MyFragment(position: Int) : Fragment() {..
CoordinatorLayout + AppBarLayout + Toolbar + RecyclerView build.gradle (Module: app) dependencies { implementation 'com.google.android.material:material:1.1.0' } CoordinatorLayout, AppBarLayout 는 머티리얼 디자인이므로 의존성 추가 res/values/styles.xml DarkActionBar 에서 NoActionBar 로 변경 (기본 타이틀바 없어짐) recyclerview_item.xml MyAdapter.kt package com.jwsoft.kotlinproject import android.content.Context import android..
build.gradle (Module: app) dependencies { implementation 'androidx.viewpager2:viewpager2:1.0.0' } activity_main.xml viewpager_item.xml ViewPagerAdapter.kt package com.jwsoft.kotlinproject import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView class Vie..
build.gradle (Modult: app) dependencies { implementation 'com.google.android.material:material:1.1.0' } TabLayout, TabItem 는 머티리얼 디자인이므로 의존성 추가 activity_main.xml MainActivity.kt package com.jwsoft.kotlinproject import android.graphics.Color import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.FrameLayout import com.google.android.material.tabs.TabLayout ..
activity_main.xml MainActivity.kt package com.jwsoft.kotlinproject import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.Button import android.widget.LinearLayout class MainActivity : AppCompatActivity(), View.OnClickListener { private lateinit var btnRed: Button private lateinit var btnGreen: Button private lateinit var btnBlue: ..
- Total
- Today
- Yesterday
- 안드로이드 #코틀린 #Android #Kotlin
- Livedata
- JSONObject
- ViewModel
- XML
- 안드로이드
- 자바
- coroutine
- Vue.js #Vue.js + javascript
- ArrayList
- handler
- 코틀린
- CoordinatorLayout
- View
- 혀가 길지 않은 개발자
- Android
- ViewPager2
- fragment
- java
- activity
- Kotlin
- MVVM
- recyclerview
- JSONArray
- Design Pattern
- Architecture Pattern
- DataBinding
- James Kim
- TabLayout
- Intent
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |