Crenox

Derek Banas Android Development NOTES

Feb 16th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. Derek Banas Android Development NOTES:
  2. What each folder and files do:
  3. - The src folder holds all of the class files for your app.
  4. - The gen contains 2 auto generated files that shouldn't be touched, EVER.
  5. - The BuildConfig.java contains basic configuration.
  6. - The R.java file provides access to resources in your application. Each resource
  7. has an ID and they are located here.
  8. - The assets contains text files, databases, and all the other data files you'll
  9. need to create your app.
  10. - In the libs (library) folder, it holds the android-support-v4 file.
  11. - The android-support-v4 is the Android API that allows you to use the newest
  12. API while remaining backwards compatible.
  13. - The bin folder contains files built by the ADT.
  14. - The APK (Application Package File) file format used for installing apps on
  15. the Android OS.
  16. - The AndroidManifest.xml defines: App name, App icon, Activities used, permissions
  17. required for App to properly operate, android.intent.action.MAIN defines the entry
  18. point for the App.
  19. - The res folder contains all drawable folders, the layout folder.
  20. - The drawable folders store images you need at different resolutions. xlarge screens
  21. are at least 960dp x 720dp. large screens are at least 640dp x 480dp. Normal screens
  22. are at least 470dp x 320dp. small screens are least 426dp x 320dp.
  23. - The layout folder contains files that define apps user interface which are:
  24. RelativeLayout - place elements relative to other elements.
  25. LinearLayout - align all elements in one direction.
  26. GridLayout - lays out elements in a series of rows and columns. Very flexible.
  27. FrameLayout - the most simple layout, which when a new elements comes, it's
  28. just stacked onto the other elements.
  29. The activity_main.xml allows you to define the layout you wanna use.
  30.  
  31. In the values folder which is inside of res, it has these 3 files:
  32. - The dimens.xml stores all padding and DP.
  33. - The strings.xml stores and retrieves all strings.
  34. - The styles.xml defines format for UI.
  35.  
  36. DP stands for density independent of pixels.
  37.  
  38. We use match_parent or wrap_content rather then exact pixels so that our interface
  39. can easily scale up and adjust things.
Advertisement
Add Comment
Please, Sign In to add comment