Your SlideShare is downloading. ×

Android App 개발 기초

1,356

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,356
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Android App 2009.11.06 Nemustech rhoon@nemustech.com 1
  • 2. Android SDK http://developer.android.com/sdk/index.html Version 1.0, 1.1, 1.5, 1.6, 2.0 Framework source : $SRCROOT$/framework/base/core/java/android/ $SRCROOT$/framework/base/core/res/res/ 2
  • 3. Application source tree 3
  • 4. Android Application apk apk activity resource : adb install $APK_PATH : adb uninstall $FULL_PACKAGE_NAME 4
  • 5. AndroidManifest.xml MyApplication.apk apk meta activity activity . Theme style 5
  • 6. Activity. ?? android.app.Activity Interaction & 6
  • 7. Activity Life Cycle http://developer.android.com/reference/android/app/ Activity.html#ActivityLifecycle paused stopped 7
  • 8. Why Activity ?? binary process & application resource http://developer.android.com/videos/ index.html#v=fL6gSd4ugSI 8
  • 9. Activity Activity onCreate() onCreate() setContentView() AndroidManifest.xml <activity> Context.startActivity() 9
  • 10. Window android.view.Window Window Manager Android , interface View.getWindow().requestFeature(int) 10
  • 11. Views View http://developer.android.com/guide/tutorials/views/ index.html android.view.View android.view.ViewGroup 11
  • 12. View User interaction android.widget.Button android.widget.EditText android.widget.ImageView 12
  • 13. ViewGroup View View layout http://developer.android.com/guide/topics/ui/layout- objects.html 13
  • 14. FrameLayout android.widget.FrameLayout view 14
  • 15. LinearLayout android.widget.LinearLayout VERTICAL or HORIZONTAL view 15
  • 16. RelativeLayout android.widget.RelativeLayout view ) a view b view , c view a view . 16
  • 17. LayoutParams android.view.ViewGroup.LayoutParams view viewgroup , view WRAP_CONTENT, FILL_PARENT, FILL_PARENT weight 17
  • 18. hierarchyviewer $SDK_PATH/tools/hierarchyviewer device emulator , view hierarchy layout 18
  • 19. Resource layout : (xml) drawable : (png, bmp), stateful drawable (xml) anim : (xml) values : strings.xml, dimen.xml, id.xml, colors.xml, styles.xml, theme.xml 19
  • 20. Localization & Multi-screen ‘values-ko’, ‘layout-ja’, ‘drawable- fr’ ‘layout-land’, ‘layout-port’ : ‘layout-800x480’ : pixel size ‘layout-hdpi’, ‘layout-ldpi’ : pixel density 20
  • 21. Java VS Xml Java, xml, hybrid xml view java findViewById(int) JavaVsXml 21
  • 22. checklist EditText & option menu flush & delete all 22
  • 23. Animation android.view.animation.Animation view , , . TranslateAnimation, ScaleAnimation, RotateAnimation, AlphaAnimation, AnimationSet aView.setAnimation() , aView invalidate() . aAnim.startAnimation(aView) , . 23
  • 24. tools $SDK_PATH/tools/* hierarchyviewer draw9patch : !! 24
  • 25. 25

×