안드로이드 앱 만들기

패키지구조 & 역할

khon98 2020. 8. 1. 14:11

AndroidManifest.xml 띄우는 법

1. 좌측 app 클릭

2. manifests 폴더 클릭

 

dpi - 안드로이드의 해상도 단위

 

 

AndroidManifest.xml

-------------------------------------

<?xml version="1.0" encoding="utf-8"?>

<mainfest xmlns:android="http://schemas.android.com/apk/res/android"

       package="com.example.intent">

 

       <application

             android:allowBackup="true"

             android:icon="@mipmap/ic_launcher" // 앱 아이콘 설정(현재는 기본 이미지)

             android:label="@String/app_name" // 빌드 진행 시 나오는 이름(바꿀 수 있음)

             android:roundIcon="@mipmap/ic_launcher_round" // 아이콘 테두리를 둥글게 만듦

             android:supportsRt1="true"

             android:theme="@style/Apptheme"> // 앱의 컬러

             <acticity android:name=".SubActivity"></acticity>

             <acticity android:name=".MainActivity">

                  <intent-filter>

                       <action android:name="android.intent.action.MAIN" />

 

                       <category android:name="android.intent.category.LAUNCHER" />

                  </intent-filter>

             </acticity>

       </application>

 

</mainfest>

-------------------------------------