linyudavid / cig-android-development

Automatically exported from code.google.com/p/cig-android-development
0 stars 0 forks source link

typo caused xml problem #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. page 97, created colors.xml and dimens.xml in "layout" folder
2. no resources could be located

What is the expected output? What do you see instead?
resources could not be located, project couldn't run

What version of the product are you using? On what operating system?

Please provide any additional information below.
moved colors.xml and dimens.xml to "values" folder after browsing source here 
and now project runs

Original issue reported on code.google.com by jedi...@gmail.com on 3 Aug 2011 at 2:44

GoogleCodeExporter commented 9 years ago
Thanks for reporting the issue. I'd like to try to build out the wiki with 
helpful information of this sort. This kind of information is useful.

Original comment by c...@the-shades.net on 18 Aug 2011 at 10:51

GoogleCodeExporter commented 9 years ago
When creating the file in eclipse Helios or later (maybe earlier versions too) 
you can do File...New...other...Android XML file... pick the resource type you 
want and and it will create the file in the proper subfolder.  The author 
specified the wrong resource type/folder in the text ( should have been Value 
and not Layout ).  The same options are available from right clicking on any of 
the folders too.

Same issue for the splash_text.xml on page 99 ( when creating the file you 
should pick the "Tween Animation" for resource type ) and it will create the 
/res/anim folder and put the file there regardless of what folder you clicked 
on.

This chapter doesn't tell you what to enter for the android manifest activity 
for the splash, but it does say you have to create one.

Maybe we could create an "errata" section on this wiki to list things like this?

Original comment by nezs...@gmail.com on 12 Feb 2012 at 9:53

GoogleCodeExporter commented 9 years ago
I found both comments above very useful while strugling with the book and 
Eclipse

Original comment by willem.d...@gmail.com on 25 Apr 2012 at 5:41