Hilt 프로젝트 build.gradle 에 dependency 추가 buildscript { ... dependencies { ... classpath 'com.google.dagger:hilt-android-gradle-plugin:2.28-alpha' } } app 단에 build.gradle에 dependency 추가 ... apply plugin: 'kotlin-kapt' apply plugin: 'dagger.hilt.android.plugin' android { ... } dependencies { implementation "com.google.dagger:hilt-android:2.28-alpha" kapt "com.google.dagger:hilt-android-compiler:2.28..

문자열에서 특정 문자의 색상, 스타일을 바꾸고싶다. SpannableStringBuilder setSpan() ForegroundColorSpan(Color.RED) Spannable.SPAN_EXCLUSIVE_EXCLUSIVE StyleSpan(Typeface.BOLD) UnderlineSpan() RelativeSizeSpan(1.5f) BackgroundColorSpan(Color.CYAN) Spannable.SPAN_EXCLUSIVE_INCLUSIVE SpannableStringBuilder.insert(36, "INCLUSIVE") activity_main.xml MainActivity.kt package com.example.spannableexample import android.graphi..

개발할 때 로그 남기고 릴리즈에선 로그 안남기고 싶다!!!!! Timber? 재목? 목재? build.gradle (Module:app) dependencies { // Timber implementation 'com.jakewharton.timber:timber:4.7.1' } AndroidManifest.xml android:name=".TimberApp" 추가!!! TimberApp.kt package com.example.timberexample import android.app.Application import timber.log.Timber class TimberApp : Application() { override fun onCreate() { super.onCreate() if (Build..
- Total
- Today
- Yesterday
- Android
- Design Pattern
- View
- 혀가 길지 않은 개발자
- recyclerview
- Livedata
- Kotlin
- CoordinatorLayout
- Architecture Pattern
- activity
- 안드로이드
- ViewPager2
- java
- JSONObject
- ArrayList
- 자바
- fragment
- Vue.js #Vue.js + javascript
- XML
- DataBinding
- coroutine
- handler
- MVVM
- 안드로이드 #코틀린 #Android #Kotlin
- JSONArray
- 코틀린
- TabLayout
- James Kim
- ViewModel
- 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 |