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

๐Ÿ’ป Extracurricular/์ฝ”๋ฎค๋‹ˆํ‹ฐ ๋ชจ๊ฐ์ฝ”

๋ชจ๊ฐ์ฝ” < Kotlin ๊ธฐ์ดˆํŽธ > - 9์ผ์ฐจ

โœ… ์•„์ด์ฝ˜ ๋งŒ๋“ค๊ธฐ

๐Ÿ‘‡๋งํฌ ํด๋ฆญ

Launcher Icon Generator

  1. ์ด๋ฏธ์ง€, ์•„์ด์ฝ˜, ํ…์ŠคํŠธ ์ง€์ •
  2. ์ƒ‰์ƒ์„ ์กฐ์ •ํ•˜์—ฌ ์›ํ•˜๋Š” ์•„์ด์ฝ˜ ์ƒ์„ฑ
  3. ์šฐ์ธก ์ƒ๋‹จ์˜ ‘๋‹ค์šด๋กœ๋“œ ๋ฒ„ํŠผ’ ํด๋ฆญ!

โœ… ์•ฑ์—์„œ ์•„์ด์ฝ˜ ๋ณ€๊ฒฝํ•˜๊ธฐ

โšก 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!