๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์•ˆ๋“œ๋กœ์ด๋“œ42

[์•ˆ๋“œ๋กœ์ด๋“œ] ๋‚จํ•œํ…Œ ๋‚ด ํ”„๋กœ์ ํŠธ๋ฅผ ๋„˜๊ธธ ๋•Œ ์–ด๋–ค ํด๋”/ํŒŒ์ผ์„ ์ง€์šฐ๊ณ  ์ค„ ๊ฒƒ์ธ๊ฐ€. ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ์•ˆ๋“œ๋กœ์ด๋“œ ํ”„๋กœ์ ํŠธ ํด๋”์˜ ์šฉ๋Ÿ‰์„ ์ค„์ผ ์ˆ˜ ์žˆ๋Š”๊ฐ€. ์–ด์ œ๊นŒ์ง€ ๋‚˜ํ˜์„ ์‰ฌ์—ˆ๋”๋‹ˆ ์•„์ง ์ •์‹ ๋จธ๋ฆฌ๊ฐ€ ๋Œ์•„์˜ค์ง€ ์•Š์•˜๋‹ค. ํ”ผ๊ณคํ•˜๋‹ค... ์ œ๋ชฉ์„ ๋ญ๋ผ ๋‹ฌ์•„์•ผ ํ•  ์ง€ ๋ชจ๋ฅด๊ฒ ๋‹ค. SampleProject ์ด๋ผ๋Š” ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค์—ˆ๋‹ค๊ณ  ๊ฐ€์ •ํ•˜์ž. SampleProject ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ํด๋” ๊ตฌ์„ฑ์ด ๋˜๋Š”๋ฐ, After ๋กœ ๋งŒ๋“ค์–ด์„œ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์—๊ฒŒ ์ „๋‹ฌํ•˜์ž~~~ โ˜… After๋กœ ๋งŒ๋“ค๊ธฐ ์œ„ํ•ด์„œ๋Š” ํ•ด๋‹น ํ”„๋กœ์ ํŠธ๋ฅผ ์ข…๋ฃŒํ•ด์•ผ ํ•จ! โ˜… Before ์ƒํƒœ์—์„œ ์žˆ๋Š” ํด๋”/ํŒŒ์ผ๋“ค์€ ์กด์žฌํ•œ๋‹ค๋ฉด ์ œ๊ฑฐ๊ฐ€ ๊ฐ€๋Šฅํ•œ ๊ฒƒ์ž„.. Before ์ƒํƒœ์—์„œ ์—†๋Š”๋ฐ? (์‹๊ฒ) ํ•  ํ•„์š”๋Š” ์—†๋‹ค. ๊ฑ After ์ƒํƒœ๋กœ ๋งŒ๋“ค๋ฉด ๋จ~! SampleProject ใ„ด .gradle : .gradle์ด ํด๋”๋Š” ๋„๊ตฌ Gradle์„ ๋นŒ๋“œ ๊ตฌ์„ฑ ํด๋”, ๋นŒ๋“œ ์บ์‹œ ์ •๋ณด๊ฐ€ ์ผ๋ถ€ ํ•ญ๋ชฉ์„ ์ €์žฅํ•  ๊ฒƒ์ด๋‹ค. (์ œ๊ฑฐ ๊ฐ€๋Šฅ) ใ„ด ... 2021. 12. 28.
[์•ˆ๋“œ๋กœ์ด๋“œ] ์˜ค๋ฅ˜ ํ•ด๊ฒฐ The minCompileSdk (31) specified in adependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) ๊ทธ๋ฆฌ๊ณ  ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ์‹ค์Šต ์˜ค๋ฅ˜ ๋‚ด์šฉ : One or more issues found when checking AAR metadata values: The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-27). Dependency: androidx.appcompat:appcompat:1.4.0. AAR metadata file: C:\Users\shin\.gradle\caches\transforms-3\๋ญ”๊ฐ€์— ๋Œ€ํ•œ ํ•ด์‹œ๊ฐ’ ๊ฐ™์Œ... ์•ฑ ์•„์ด๋””์— ๋Œ€ํ•œ ํ•ด์‹œ๊ฐ’์ธ๊ฐ€?\t.. 2021. 11. 29.
[์•ˆ๋“œ๋กœ์ด๋“œ] ๊ธ€์ž ์ƒ‰ ๋ฐ”๊พธ๊ธฐ - SpannableString, SpannableStringBuilder build.gradle (:app) plugins { id 'com.android.application' } android { compileSdk 30 defaultConfig { applicationId "com.devshin93.spannabletest" minSdk 25 targetSdk 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rule.. 2021. 11. 26.
[ ์•ˆ๋“œ๋กœ์ด๋“œ] ๋ฒ„ํŠผ ๋ˆŒ๋ €์„ ๋•Œ ๋ฒ„ํŠผ ์ƒ‰๊น”๊ณผ ํ…์ŠคํŠธ ์ƒ‰๊น”์ด ๋ฐ”๋€Œ๊ฒŒ ํ•˜๊ธฐ. ๋ฒ„ํŠผ ์ปค์Šคํ…€! - selector, ripple ์ด๋ ‡๊ฒŒ ๋˜๋Š” ๊ฒƒ์„ ๋งŒ๋“ค ๊ฒƒ์ด๋‹ค. ์กฐ๊ธˆ ๋ณต์žกํ•ด ๋ณด์ผ ์ˆ˜ ์žˆ๋Š”๋ฐ... ใ…Ž ์ฒœ์ฒœํžˆ ๋”ฐ๋ผ ์˜ค๋ฉด ์‰ฝ๋‹ค. ๋ณต์žกํ•˜๊ณ  ๋ชจ๋ฅด๊ฒ ์œผ๋ฉด ์ผ๋‹จ ๋ณต๋ถ™ํ•ด์„œ ๋„ฃ๊ณ  ๊ฐ’์„ ๋ฐ”๊ฟ” ๊ฐ€๋ฉด์„œ ํ™•์ธํ•ด ๋ณด์‹œ๊ธธ.. 0. MainActivity.java (ํŒจํ‚ค์ง€๋ช…๊นŒ์ง€ ๋”ฐ๋ผํ•˜์ง€๋Š” ๋ง ๊ฒƒ... ๊ฐ„ํ˜น ๊ทธ๋Ÿฐ ์‚ฌ๋žŒ๋“ค๋„ ์žˆ๋Š” ๊ฒƒ ๊ฐ™์•„์„œ.. ํ˜น์‹œ๋‚˜) ์•ฑ์ด ์‹คํ–‰๋˜๊ณ  2.5 ์ดˆ ๋’ค์— ๋ฒ„ํŠผ์ด ํ™œ์„ฑํ™”๋˜๋Š” ์•ก์…˜์„ ๋งŒ๋“ค์–ด ๋ณด์ž. package com.devshin93.drawabletest; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.Button; public class MainActivity extends AppCompatActivity { .. 2021. 11. 10.