58일차
AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.helloandroid"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8" : 최소 sdk 버전
android:targetSdkVersion="15" /> : 기준 sdk 버전
<application
android:icon="@drawable/ic_launcher" : @ at - 어디에
android:label="@string/app_name" : 어플 이름
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity" : 자바파일 설정
android:label="@string/title_activity_main" > : 액티비티 타이틀
<intent-filter> : 대표 액티비티 지정
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
dpi : 집약도 ldpi - mdpi - hdpi - xhdpi
해상도는 항상 96dpi
ldpi : 36px
mdpi : 48px (*) 기준!
hdpi : 72px
xhdpi : 96px
Activity 실행 순서
onCreate()
onStart() (onRestart())
onResume()
onPause() (화면이 살짝 가리면)
onStop() (다시 액티비티가 보일때 onRestart() -> onStart() 실행) - 진행사항저장
onDestroy()
안드로이드의 관례
인터페이스 생성시 I 를 맨 앞에 붙인다.
멤버변수 생성시 m 을 맨 앞에 붙인다.
xml에서
? : 스타일에 관련된 값을 가져다 쓸때
'Dev. 640시간 뭉개기 > 강의내용정리' 카테고리의 다른 글
[Android] 61일차 - Canvas 객체, postInvalidate(), SystemClock.sleep(milliseconds) (0) | 2012.12.03 |
---|---|
[Android] 59일차 - sqlite 문법, 안드로이드 관례 (0) | 2012.12.03 |
[Android] 57일차 - 안드로이드 구성/ 시작 (0) | 2012.12.03 |
[WEB/SPRING] 56일차 - ajax(Asynchronous Javascript And Xml (0) | 2012.12.03 |
[WEB/SPRING] 55일차 - spring에서의 AOP(Aspect Oriented Programming) (0) | 2012.12.03 |