โ ์์ด์ฝ ๋ง๋ค๊ธฐ
๐๋งํฌ ํด๋ฆญ
- ์ด๋ฏธ์ง, ์์ด์ฝ, ํ ์คํธ ์ง์
- ์์์ ์กฐ์ ํ์ฌ ์ํ๋ ์์ด์ฝ ์์ฑ
- ์ฐ์ธก ์๋จ์ ‘๋ค์ด๋ก๋ ๋ฒํผ’ ํด๋ฆญ!
โ ์ฑ์์ ์์ด์ฝ ๋ณ๊ฒฝํ๊ธฐ
โก ic_launcher ๋ผ๋ ๋ฌธ๊ตฌ๊ฐ ๋ค์ด๊ฐ ํ์ผ์ ๋ชจ๋ ์์ด์ฝ๊ณผ ๊ด๋ จ๋ ํ์ผ!
1๏ธโฃ New > Image Asset ํด๋ฆญ
2๏ธโฃ Configure Image Asset > Name
Name ๊ฐ ๋ณ๊ฒฝ โ
๐ Foreground Layer : ์์ด์ฝ ์ด๋ฏธ์ง ์ค์
๐ Background Layer : ์์ด์ฝ ์ด๋ฏธ์ง์ ๋ฐฐ๊ฒฝ์ ์ค์
3๏ธโฃ Foreground Layer > ํด๋๋ฒํผ ํด๋ฆญ
์๊น ๋ค์ด ๋ฐ์๋ ํ์ผ ์ด๋ฆ.png ์ ํ!
4๏ธโฃ Background Layer > Color ์ค์
์์ด์ฝ ๋ฐฐ๊ฒฝ์๊ณผ ๋์ผํ๊ฒ ๋ณ๊ฒฝ
5๏ธโฃ Foreground Layer > Scaling ์กฐ์
์ํ๋ ํฌ๊ธฐ๋ก ๋ณ๊ฒฝ
๐ Finish ๋ฒํผ ํด๋ฆญ!
โ ์ฑ ์ด๋ฆ ๋ณ๊ฒฝํ๊ธฐ
โก app > manifests > AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lotto">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Lotto">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
โก android:label=”@string/app_name”
app_name์ด๋ผ๋ ์ด๋ฆ์ผ๋ก ์ ์ธ๋ string ๊ฐ = ‘์ฑ์ ์ด๋ฆ’
โก app_name ์ค์
res > values > strings.xml
: ์ํ๋ ์ด๋ฆ์ผ๋ก ๋ณ๊ฒฝ
์ ๋ ๊ฐ๋จํ๊ฒ ‘Lotto’๋ก ์ค์ ํ์ต๋๋ค!
โ ์ค๋์ ๋ฌธ์ : ์ฑ ์์ด์ฝ, ์ฑ ์ด๋ฆ ๋ณ๊ฒฝํ๊ธฐ
๐ ์คํ ๊ฒฐ๊ณผ
https://codemate.kr/@guswlsdl04/๋ชจ๊ฐ์ฝ-์ฝํ๋ฆฐ-๊ธฐ์ดํธ-9์ผ์ฐจ โ CLICK HERE!
'๐ป Extracurricular > ์ฝ๋ฎค๋ํฐ ๋ชจ๊ฐ์ฝ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋ชจ๊ฐ์ฝ < Kotlin ๊ธฐ์ดํธ > - 11์ผ์ฐจ (0) | 2022.03.09 |
---|---|
๋ชจ๊ฐ์ฝ < Kotlin ๊ธฐ์ดํธ > - 10์ผ์ฐจ (0) | 2022.03.09 |
๋ชจ๊ฐ์ฝ < Kotlin ๊ธฐ์ดํธ > - 8์ผ์ฐจ (0) | 2022.03.09 |
๋ชจ๊ฐ์ฝ < Kotlin ๊ธฐ์ดํธ > - 7์ผ์ฐจ (0) | 2022.03.09 |
๋ชจ๊ฐ์ฝ < Kotlin ๊ธฐ์ดํธ > - 6์ผ์ฐจ (0) | 2022.03.09 |