User Tools

Site Tools


android_learning:headfirst_android_development_notes:chapter_9

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
android_learning:headfirst_android_development_notes:chapter_9 [2016/03/05 20:15] – [p. 392] mithatandroid_learning:headfirst_android_development_notes:chapter_9 [2016/03/16 03:34] (current) – [p. 370: Creating the project] mithat
Line 1: Line 1:
-<WRAP center round important 90%>+====== Chapter 9 ====== 
 +<WRAP center round important 60%>
 The changes to Android Studio 1.5.1 have put this chapter well out of sync with both the "Blank Activity" and "Empty Activity" templates. So while this isn't a very long chapter, there will be a //lot// of corrections/addenda. The changes to Android Studio 1.5.1 have put this chapter well out of sync with both the "Blank Activity" and "Empty Activity" templates. So while this isn't a very long chapter, there will be a //lot// of corrections/addenda.
 </WRAP> </WRAP>
- 
-====== Chapter 9 ====== 
 It might be a little ambiguous in the Chapter intro, so here's a summary of what you're going to do in the chapter. You will build an app that has an //action bar//. An action bar is space at the top of an app that holds the activity name or other info on the left (in LTR languages) as well as a menu on the right (in LTR languages). The menu will have a number of items; some of those items will be specified to be pulled out of the drop down list and placed on the action bar as //action buttons// alongside the menu. It might be a little ambiguous in the Chapter intro, so here's a summary of what you're going to do in the chapter. You will build an app that has an //action bar//. An action bar is space at the top of an app that holds the activity name or other info on the left (in LTR languages) as well as a menu on the right (in LTR languages). The menu will have a number of items; some of those items will be specified to be pulled out of the drop down list and placed on the action bar as //action buttons// alongside the menu.
  
-The action bar is a bit of a cluster fudge at the moment. It wasn't to Android added until relatively recently, and if you want to build apps using action bars that target older versions of Android, you'll have to use compatibility libraries. The syntax when compatibility libraries is just different enough from current Android "native" action bars to make things maximally painful to move from one to the other.+The action bar is a bit of a clustercuss at the moment. It wasn't to Android added until relatively recently, and if you want to build apps using action bars that target older versions of Android, you'll have to use compatibility libraries. The syntax when compatibility libraries is just different enough from current Android "native" action bars to make things maximally painful to move from one to the other.
  
 Another issue is that the compatibility libraries seem to be buggier than the current Android "native" action bars. So, I think it's best not to mess around with the compatibility libraries at first. Let the fun begin. Another issue is that the compatibility libraries seem to be buggier than the current Android "native" action bars. So, I think it's best not to mess around with the compatibility libraries at first. Let the fun begin.
Line 16: Line 15:
 </WRAP> </WRAP>
    
 +It will hurt if you don't.
  
-It will hurt if you don't. Be sure you specify an Empty app template in the new app wizard.+Be sure you specify an **Empty app template** in the new app wizard.
  
 ==== menu_main.xml ==== ==== menu_main.xml ====
Line 210: Line 210:
  
 ===== p. 392 ===== ===== p. 392 =====
-Since this app isn't supporting API 16 and lower, you don't need the ''meta-data'' stuff.+Since this app isn't supporting API 16 and lower, you don't need the ''meta-data'' stuff for the OrderActivity in ''AndroidManifest.xml''.
 ===== p. 393 ===== ===== p. 393 =====
 Code it like you see it. Code it like you see it.
android_learning/headfirst_android_development_notes/chapter_9.1457208945.txt.gz · Last modified: 2016/03/05 20:15 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki