Android
[Android] 패키지구조&역할
Jintiago
2022. 3. 9. 18:05
<?xml version="1.0" encoding="utf-8"?>
<manifest 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" // 앱 이름 설정! ctrl + 클릭으로 접근
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Intent"> // 앱의 심볼 컬러
<activity // 액티비티 선언
android:name=".SubActivity"
android:exported="false" />
<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>
res 폴더 : resource 파일 갖고 있음
이미지, 레이아웃
res 하위 values의 colors.xml : 심볼컬러 조정 가능
styles : 테마 모아둠