> > Here is where the problem lay : > <item android:drawable="@drawable/ic_gmap_light*.png*" /> > Wow... I feel pretty stupid that I missed that...
Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Apr 12, 2012 at 8:40 AM, sgiddings <[email protected]> wrote: > Well now .... I am quite pleased with myself, even though a bit > embarrassed. > As developers we like to say to our users READ WHAT IT SAYS ! > > Here is where the problem lay : > <item android:drawable="@drawable/ic_gmap_light*.png*" /> > > I had not noticed that, in the tutorial, even though the resource name > held the same name as the icon file, it did not have the file extension. > Just corrected and ... guess what ... it works ! > > Thanks for taking the time Justin. > Simon > > > On Thursday, 12 April 2012 16:32:37 UTC+2, MagouyaWare wrote: >> >> Ok, all of that looks fine... Something else must be going on here. >> >> I do know you need to remove the + from @+drawable... Sometimes (though >> it has been a while since I've had to do this) I've had to delete my gen >> folder and then clean and rebuild to have problems like this go away. >> >> Thanks, >> Justin Anderson >> MagouyaWare Developer >> http://sites.google.com/site/**magouyaware<http://sites.google.com/site/magouyaware> >> >> >> On Thu, Apr 12, 2012 at 8:21 AM, sgiddings <[email protected]>wrote: >> >>> Hi Justin, >>> >>> Here we go >>> >>> - src >>> - gen >>> - Google APIs [Android 2.3.3] >>> - Android Dependencies >>> - assets >>> - bin >>> - res >>> - drawable >>> ic_tab_gmap.xml >>> - drawable-hdpi >>> ic_gmap_dark.png >>> ic_gmap_light.png >>> ic_launcher.png >>> - drawable-ldpi >>> ic_gmap_dark.png >>> ic_gmap_light.png >>> ic_launcher.png >>> - drawable-mdpi >>> ic_gmap_dark.png >>> ic_gmap_light.png >>> ic_launcher.png >>> - drawable-xhdpi >>> ic_gmap_dark.png >>> ic_gmap_light.png >>> ic_launcher.png >>> - layout >>> main.xml >>> - values >>> strings.xml >>> >>> I only detailed the contents of the res sub-directories here. >>> Do you need other info ? >>> >>> Simon >>> >>> >>> On Thursday, 12 April 2012 16:07:54 UTC+2, MagouyaWare wrote: >>>> >>>> What exactly does your res directory structure look like? Please >>>> include all directories and files... >>>> >>>> Thanks, >>>> Justin Anderson >>>> MagouyaWare Developer >>>> http://sites.google.com/site/**m**agouyaware<http://sites.google.com/site/magouyaware> >>>> >>>> >>>> On Thu, Apr 12, 2012 at 8:02 AM, sgiddings <[email protected]>wrote: >>>> >>>>> I have followed the TabHost sample to start building my application. >>>>> When I run it in the emulator, it crashes with an exception : >>>>> E/AndroidRuntime(375): java.lang.RuntimeException: Unable to start >>>>> activity ComponentInfo{com.letrajet.**and**roid.maps2/com.letrajet.** >>>>> androi**d.maps2.HomeActivity}: >>>>> android.content.res.Resources$****NotFoundException: >>>>> File res/drawable/ic_tab_gmap.xml from drawable resource ID #0x7f020008 >>>>> >>>>> I followed the instructions, creating my state-list drawable in the >>>>> drawable directory (which I had to create) and putting a copy of my two >>>>> state icons in each of the drawable-xxx directories. >>>>> >>>>> Here is the content of the xml file : >>>>> <?xml version="1.0" encoding="utf-8"?> >>>>> <selector xmlns:android="http://schemas.**** >>>>> android.com/apk/res/android<http://schemas.android.com/apk/res/android>" >>>>> > >>>>> <item android:drawable="@+drawable/**i**c_gmap_dark.png" >>>>> android:state_selected="true" /> >>>>> >>>>> <item android:drawable="@+drawable/**i**c_gmap_light.png" /> >>>>> >>>>> </selector> >>>>> >>>>> First thing worth noting : I could not simply declare the resource as >>>>> described in the tutorial - @drawable/ic_gmap_dark.png >>>>> An error was generated saying : >>>>> error: Error: No resource found that matches the given name (at >>>>> 'drawable' with value '@drawable/ic_gmap_dark.png') >>>>> However, if I put a '+' in there, it generated an id in R.java for me. >>>>> >>>>> Am I supposed to declare in another file the existence of my >>>>> ic_tab_gmap.xml >>>>> file ? >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Android Discuss" group. >>>>> To view this discussion on the web visit https://groups.google.com/d/* >>>>> *ms**g/android-discuss/-/x_G4QI-**1uX**cJ<https://groups.google.com/d/msg/android-discuss/-/x_G4QI-1uXcJ> >>>>> . >>>>> To post to this group, send email to android-discuss@googlegroups.**c* >>>>> *om <[email protected]>. >>>>> To unsubscribe from this group, send email to >>>>> android-discuss+unsubscribe@**go**oglegroups.com<android-discuss%[email protected]> >>>>> . >>>>> For more options, visit this group at http://groups.google.com/**group >>>>> **/android-discuss?hl=en<http://groups.google.com/group/android-discuss?hl=en> >>>>> . >>>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Discuss" group. >>> To view this discussion on the web visit https://groups.google.com/d/** >>> msg/android-discuss/-/**GN6MYFZ5LGkJ<https://groups.google.com/d/msg/android-discuss/-/GN6MYFZ5LGkJ> >>> . >>> >>> To post to this group, send email to >>> android-discuss@googlegroups.**com<[email protected]> >>> . >>> To unsubscribe from this group, send email to >>> android-discuss+unsubscribe@**googlegroups.com<android-discuss%[email protected]> >>> . >>> For more options, visit this group at http://groups.google.com/** >>> group/android-discuss?hl=en<http://groups.google.com/group/android-discuss?hl=en> >>> . >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Android Discuss" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/android-discuss/-/kUkOp_yk588J. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/android-discuss?hl=en. > -- You received this message because you are subscribed to the Google Groups "Android Discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-discuss?hl=en.
