본문 바로가기
Programing/android

[android studio] 앱 아이콘 만들기

by TEXTBOX 2021. 10. 28.
728x90

1. 이미지를 준비한다.
- 512px X 521px 혹은 1024px X 1024px 사이즈로 주로 만들었다.

2. 아래 이미지의 메뉴대로 res폴더에서 New-Image Asset메뉴를 선택한다.

 

3. Image Asset 다이얼로그에서 1번위치의 name을 지정해주고,
2번에 있는 path를 클릭하여 준비해놓은 이미지 사진을 불러온다.
만일 이미지 크기 조절이 필요한경우 3번 Resize메뉴를 이용하여 사이즈를 조절해 주자.
모두 완료 되면 4번 Next버튼으로 다음으로 넘어가면 된다.

 

4. 아이콘 Size가 (512x512)로 출력되고 이미지도 깔끔하게 나온듯하다.
문제가 없다면 Finish 버튼을 클릭하여 완료 하면된다.

 

5. android studio에 아이콘이 만들어진 것을 확인할 수 있다.

 

6. manifests폴더의 AndroidManifest.xml을 수정해 주자.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="패키지명">

    <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.app"
        android:usesCleartextTraffic="true">
       
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:theme="@style/Theme.app.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>

</manifest>

해당 부분에서 아래 2개 부분을 아이콘을 만들때 넣어주었던 name으로 변경해 주자.

android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"

변경 후

android:icon="@mipmap/ic_main"
android:roundIcon="@mipmap/ic_main_round"

 

런처실행시에 아이콘이 정상적으로 잘 반영 되는것을 확인하였다.

 

728x90

댓글