티스토리 뷰
728x90
언어의 목적
1. General Purpose Language
• 범용적인 목적을 가지고 있는 언어
ex) Kotlin, Python, Java, C, C++, Swift 등...
- 우리가 아는 일반적인 언어
2. Domain Specific Language (DSL)
• 도메인 특화 언어 -> 특수한 목적을 달성하기 위한 언어
• 만들 때 부터 특정 문제를 해결하기 위해 만들어 짐.
-> 문법이 간단함.
ex) XML
XML(eXtensible Markup Language)
• 데이터의 구조와 의미를 잘 전달할 수 있게 만든 언어.
• 안드로이드에서 UI를 그리기 위해 채택되었다.
• extensible = 확장 가능하다. -> 태그 안에 태그를 추가, 또 추가... 할 수 있다.
• markup language
- 태그로 마크를 하여 내용을 작성
- 태그 : 범위를 정해줌.
• <태그 속성>내용</태그>
- 내용이나 자식 태그가 있을 경우 위와 같이 작성
- 내용이나 자식 태그가 없을 경우 <태그 속성 />로 생략 가능.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.FastCampus"
tools:targetApi="31">
<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>
- 아직 의미는 모르지만 <mainfest> 태그 안에 <application> 태그 안에 <activity> 태그... 이런 구조를 볼 수 있다.
이 글은
패스트 캠퍼스 Android 앱 개발의 정석 with Kotlin 올인원 패키지 Online
강의를 듣고 공부한 내용을 바탕으로 작성되었습니다.
728x90
'📱 Android > 🔍 UI' 카테고리의 다른 글
[Android/UI] 6. Relative Layout(렐러티브 레이아웃) (0) | 2022.10.14 |
---|---|
[Android/UI] 5. 리니어 레이아웃(Linear Layout) (0) | 2022.10.14 |
[Android/UI] 4. 뷰 속성 (0) | 2022.10.13 |
[Android/UI] 3. 뷰 컴포넌트(View Component) (0) | 2022.10.13 |
[Android/UI] 2. 단위 (0) | 2022.10.13 |
댓글
250x250
공지사항