MainActivity.kt package com.jwsoft.kotlinproject import android.os.Bundle import android.util.Log import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) var name = "James Kim" Log.e("change", name.replace("Kim", "혀가 길지 않은 개발자")) } }
Student.kt package com.jwsoft.kotlinproject data class Student ( var name: String ) MainActivity.kt package com.jwsoft.kotlinproject import android.os.Bundle import android.util.Log import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() { private var students: ArrayList = ArrayList() override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstan..
Student.kt package com.jwsoft.kotlinproject data class Student ( var name: String ) MainActivity.kt package com.jwsoft.kotlinproject import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log class MainActivity : AppCompatActivity() { private var students: ArrayList = ArrayList() override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstan..
AndroidManifest.xml 인터넷 권한 추가 android:usesCleartextTraffic="true" 추가 (에뮬레이터에서 실행하기 위함) MainActivity.kt package com.jwsoft.kotlinproject import android.media.MediaPlayer import android.net.Uri import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.SurfaceHolder class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { sup..
build.gradle (Module: app) android { compileOptions { targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { // ExoPlayer implementation 'com.google.android.exoplayer:exoplayer:2.10.6' } AndroidManifest.xml 인터넷 권한 추가 activity_main.xml MainActivity.kt package com.jwsoft.kotlinproject import android.net.Uri import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com..
- Total
- Today
- Yesterday
- James Kim
- handler
- CoordinatorLayout
- JSONArray
- ViewModel
- recyclerview
- Kotlin
- Architecture Pattern
- MVVM
- Intent
- 코틀린
- 안드로이드 #코틀린 #Android #Kotlin
- coroutine
- DataBinding
- XML
- View
- activity
- 혀가 길지 않은 개발자
- ViewPager2
- 안드로이드
- 자바
- Design Pattern
- java
- Vue.js #Vue.js + javascript
- TabLayout
- Livedata
- ArrayList
- Android
- JSONObject
- fragment
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |