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

๐Ÿ’š ๊ฐœ๋ฐœ98

[์•ˆ๋“œ๋กœ์ด๋“œ] ๊ธ€์ž ์ƒ‰ ๋ฐ”๊พธ๊ธฐ - 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.
[์•ˆ๋“œ๋กœ์ด๋“œ์ŠคํŠœ๋””์˜ค/์ธํ…”๋ฆฌ์ œ์ด] ์ฝ”๋“œ ์ž๋™ ์ •๋ ฌ, ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” import ์ œ๊ฑฐ ๋‹จ์ถ•ํ‚ค ์ฝ”๋“œ ์ž๋™ ์ •๋ ฌ ๋‹จ์ถ•ํ‚ค: Ctrl + Alt + L ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” import ์ œ๊ฑฐ ๋‹จ์ถ•ํ‚ค: Ctrl + Alt + o ๋ฌผ๋ก  ๋‹จ์ถ•ํ‚ค๋Š” ์‚ฌ์šฉ์ž ์„ค์ •์— ์˜ํ•ด ๋ฐ”๋€” ์ˆ˜ ์žˆ๋‹ค. ์ถ”๊ฐ€. ๋ฒ— ํ•„๋…) File > Settings > Editor > Code Style > Hard wrap at ๊ธฐ๋ณธ์ด 80์œผ๋กœ ๋˜์–ด ์žˆ์„ ๊ฒƒ ๊ฐ™์€๋ฐ.. ๋ณดํ†ต 160 ์œผ๋กœ ๋‘๊ณ  ์‚ฌ์šฉํ•œ๋‹ค๊ณ  ํ•œ๋‹ค. ํŒ€ ๋‚ด ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์— ๋งž์ถ”์–ด ํŒ€์›๋“ค๊ณผ ์ƒ์˜ ํ›„ ์…‹ํŒ…ํ•œ๋‹ค.. ์–˜๊ธฐ๊ฐ€ ์ด๋ค„์ง€์ง€ ์•Š์•˜๋‹ค๋ฉด ํ•จ๋ถ€๋กœ ctrl+l ์„ ์‚ฌ์šฉํ•˜์ง€ ๋ง์ž...^^ ์ฝ”๋“œ ์ •๋ฆฌํ•œ๋‹ค๊ณ  ์ž๋™์ •๋ ฌ ์‚ฌ์šฉํ–ˆ๋Š”๋ฐ ํ˜ผ๋‚ฌ๋‹ค ใ…‹ SVN์— ์žˆ๋Š” ์—ด์ด๋ž‘ ๋งž์ง€ ์•Š์•„ ์˜๋„์น˜ ์•Š๊ฒŒ ๋ˆ„๊ตฐ๊ฐ€๋ฅผ ํ™”๋‚˜๊ฒŒ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค... ^^; 2021. 11. 24.
[Mac] zsh: permission denied: ./sample.sh ์˜ค๋ฅ˜ ๋‚ด์šฉ # ./sample.sh zsh: permission denied: ./sample.sh ์‰˜ ์Šคํฌ๋ฆฝํŠธ ํŒŒ์ผ์„ ์‹คํ–‰ํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐ, ์œ„์™€ ๊ฐ™์ด permission denied (๊ถŒํ•œ์ด ๊ฑฐ๋ถ€) ๋˜๋Š” ๊ฒฝ์šฐ... ๋ญ์ง€ root ๊ณ„์ •์œผ๋กœ ์‹คํ–‰ ํ•ด์•ผ ํ•˜๋‚˜.. ์‹ถ์–ด์„œ sudo(switch user do; ์œ ์ €๋ฅผ ๋ฐ”๊ฟ”์„œ ๋’ค์— ์˜ค๋Š” ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•œ๋‹ค) ๋ช…๋ น์–ด๋„ ์‚ฌ์šฉํ•ด ๋ณด๊ณ , su(switch user; ์œ ์ €๋ฅผ ๋ฐ”๊พผ๋‹ค) ๋กœ ์‚ฌ์šฉ์ž๋ฅผ root ๋กœ ๋ฐ”๊ฟ”์•ผ ํ•˜๋‚˜.. ํ–ˆ๋Š”๋ฐ ๊ฐ„๋‹จํ•œ ๋ฌธ์ œ์˜€๋‹ค. 1) ์Šคํฌ๋ฆฝํŠธ ํŒŒ์ผ์„ ์‹คํ–‰ํ•˜๋ ค๋Š” ํด๋”์—์„œ ํ•ด๋‹น ํŒŒ์ผ์˜ ๊ถŒํ•œ์„ ํ™•์ธํ•˜์ž (์œ ์ € ๊ถŒํ•œ์ด ์•„๋‹˜) # ls -al 1.1) ํŒŒ์ผ์˜ ๊ถŒํ•œ์€ ----------(000) ๋ถ€ํ„ฐ -rwxrwxrwx(777)๊นŒ์ง€ ๋  ์ˆ˜ ์žˆ๋Š”๋ฐ, (์—ฌ๊ธฐ์„œ ๊ฐ€์žฅ ์•ž์—.. 2021. 11. 23.
[ ์•ˆ๋“œ๋กœ์ด๋“œ] ๋ฒ„ํŠผ ๋ˆŒ๋ €์„ ๋•Œ ๋ฒ„ํŠผ ์ƒ‰๊น”๊ณผ ํ…์ŠคํŠธ ์ƒ‰๊น”์ด ๋ฐ”๋€Œ๊ฒŒ ํ•˜๊ธฐ. ๋ฒ„ํŠผ ์ปค์Šคํ…€! - 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.