Android App 개발 기초

1,654 views
1,513 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,654
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
14
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Android App 개발 기초

  1. 1. Android App 2009.11.06 Nemustech rhoon@nemustech.com 1
  2. 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. 3. Application source tree 3
  4. 4. Android Application apk apk activity resource : adb install $APK_PATH : adb uninstall $FULL_PACKAGE_NAME 4
  5. 5. AndroidManifest.xml MyApplication.apk apk meta activity activity . Theme style 5
  6. 6. Activity. ?? android.app.Activity Interaction & 6
  7. 7. Activity Life Cycle http://developer.android.com/reference/android/app/ Activity.html#ActivityLifecycle paused stopped 7
  8. 8. Why Activity ?? binary process & application resource http://developer.android.com/videos/ index.html#v=fL6gSd4ugSI 8
  9. 9. Activity Activity onCreate() onCreate() setContentView() AndroidManifest.xml <activity> Context.startActivity() 9
  10. 10. Window android.view.Window Window Manager Android , interface View.getWindow().requestFeature(int) 10
  11. 11. Views View http://developer.android.com/guide/tutorials/views/ index.html android.view.View android.view.ViewGroup 11
  12. 12. View User interaction android.widget.Button android.widget.EditText android.widget.ImageView 12
  13. 13. ViewGroup View View layout http://developer.android.com/guide/topics/ui/layout- objects.html 13
  14. 14. FrameLayout android.widget.FrameLayout view 14
  15. 15. LinearLayout android.widget.LinearLayout VERTICAL or HORIZONTAL view 15
  16. 16. RelativeLayout android.widget.RelativeLayout view ) a view b view , c view a view . 16
  17. 17. LayoutParams android.view.ViewGroup.LayoutParams view viewgroup , view WRAP_CONTENT, FILL_PARENT, FILL_PARENT weight 17
  18. 18. hierarchyviewer $SDK_PATH/tools/hierarchyviewer device emulator , view hierarchy layout 18
  19. 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. 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. 21. Java VS Xml Java, xml, hybrid xml view java findViewById(int) JavaVsXml 21
  22. 22. checklist EditText & option menu flush & delete all 22
  23. 23. Animation android.view.animation.Animation view , , . TranslateAnimation, ScaleAnimation, RotateAnimation, AlphaAnimation, AnimationSet aView.setAnimation() , aView invalidate() . aAnim.startAnimation(aView) , . 23
  24. 24. tools $SDK_PATH/tools/* hierarchyviewer draw9patch : !! 24
  25. 25. 25

×