Oh yes, I forgot that I hit that one as well. For the people who find this thread in the future, you can also not have underscores in the xml name.
Connie On Jul 7, 5:05 pm, Amit Sood <sood.is...@gmail.com> wrote: > Connie, > > This was happening because you cannot use letter in caps in the filenameOn > Thu, Jul 8, 2010 at 2:32 AM, Connie Walsh <con...@walshclan.biz> wrote: > > I have had this happen a couple of times. These are some things I tried: > > > 1. Closed other open projects. > > 2. Checked the directory that the file is actually in the res>layout. I > > have mistakenly put it in the res>values area. > > 3. Closed the project and reopen. > > > God Bless, > > Connie > > > 613-424-1146 (home) > > > On 7 July 2010 16:43, Amit Sood <sood.is...@gmail.com> wrote: > > >> i have created another xml file in the res--layout folder and that too is > >> not coming up when i do R.layout. > > >> On Thu, Jul 8, 2010 at 2:09 AM, Amit Sood <sood.is...@gmail.com> wrote: > > >>> it gives an error which sayes "Home cannot be resolved" > > >>> On Thu, Jul 8, 2010 at 2:04 AM, Justin Anderson <janderson....@gmail.com > >>> > wrote: > > >>>> What happens when you just use R.layout.Home and build? > > >>>> ---------------------------------------------------------------------- > >>>> There are only 10 types of people in the world... > >>>> Those who know binary and those who don't. > >>>> ---------------------------------------------------------------------- > > >>>> On Wed, Jul 7, 2010 at 2:25 PM, Amit Sood <sood.is...@gmail.com> wrote: > > >>>>> Thanks for the reply. > > >>>>> Yes you are correct it should come up in the eclipse popup but for some > >>>>> reason it is not. > > >>>>> I have attached my project for your reference > > >>>>> Please advise. > > >>>>> Massive thanks > > >>>>> On Thu, Jul 8, 2010 at 1:40 AM, Justin Anderson < > >>>>> janderson....@gmail.com> wrote: > > >>>>>> *> I have created a new java class, but when i do R.layout. in the > >>>>>> setContentView method i cannot find my Home.xml file*.* I can see the > >>>>>> main.xml which is created by default.* > > >>>>>> Not sure exactly what you mean here... > > >>>>>> You should be able to access it via 'R.layout.Home'. If you are > >>>>>> talking about the popup window in Eclipse for autofill then you will > >>>>>> need to > >>>>>> rebuild your project (which will rebuild the R class) and then it > >>>>>> should > >>>>>> show up. > > >>>>>> ---------------------------------------------------------------------- > >>>>>> There are only 10 types of people in the world... > >>>>>> Those who know binary and those who don't. > >>>>>> ---------------------------------------------------------------------- > > >>>>>> On Wed, Jul 7, 2010 at 1:52 PM, Amit Sood <sood.is...@gmail.com>wrote: > > >>>>>>> Hello, > > >>>>>>> I have just created a new xml file to define layout for one of my > >>>>>>> activity > > >>>>>>> res > >>>>>>> |__layout > >>>>>>> |__Home.xml > > >>>>>>> I have created a new java class, but when i do R.layout. in the > >>>>>>> setContentView method i cannot find my Home.xml file. I can see the > >>>>>>> main.xml which is created by default. > > >>>>>>> package com.abc.ViewsApp; > >>>>>>> import android.app.Activity; > >>>>>>> import android.os.Bundle; > >>>>>>> public class clHome extends Activity > >>>>>>> { > >>>>>>> �...@override > >>>>>>> protected void onCreate(Bundle savedInstanceState) { > >>>>>>> // TODO Auto-generated method stub > >>>>>>> super.onCreate(savedInstanceState); > >>>>>>> setContentView(R.layout.); > >>>>>>> } > >>>>>>> } > > >>>>>>> Please advise. > > >>>>>>> Thanks. > > >>>>>>> -- > >>>>>>> You received this message because you are subscribed to the Google > >>>>>>> Groups "Android Beginners" group. > > >>>>>>> NEW! Try asking and tagging your question on Stack Overflow at > >>>>>>>http://stackoverflow.com/questions/tagged/android > > >>>>>>> To unsubscribe from this group, send email to > >>>>>>> android-beginners+unsubscr...@googlegroups.com<android-beginners%2Bunsubscr > >>>>>>> i...@googlegroups.com> > >>>>>>> For more options, visit this group at > >>>>>>>http://groups.google.com/group/android-beginners?hl=en > > >>>>>> -- > >>>>>> You received this message because you are subscribed to the Google > >>>>>> Groups "Android Beginners" group. > > >>>>>> NEW! Try asking and tagging your question on Stack Overflow at > >>>>>>http://stackoverflow.com/questions/tagged/android > > >>>>>> To unsubscribe from this group, send email to > >>>>>> android-beginners+unsubscr...@googlegroups.com<android-beginners%2Bunsubscr > >>>>>> i...@googlegroups.com> > >>>>>> For more options, visit this group at > >>>>>>http://groups.google.com/group/android-beginners?hl=en > > >>>>> -- > >>>>> You received this message because you are subscribed to the Google > >>>>> Groups "Android Beginners" group. > > >>>>> NEW! Try asking and tagging your question on Stack Overflow at > >>>>>http://stackoverflow.com/questions/tagged/android > > >>>>> To unsubscribe from this group, send email to > >>>>> android-beginners+unsubscr...@googlegroups.com<android-beginners%2Bunsubscr > >>>>> i...@googlegroups.com> > >>>>> For more options, visit this group at > >>>>>http://groups.google.com/group/android-beginners?hl=en > > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "Android Beginners" group. > > >>>> NEW! Try asking and tagging your question on Stack Overflow at > >>>>http://stackoverflow.com/questions/tagged/android > > >>>> To unsubscribe from this group, send email to > >>>> android-beginners+unsubscr...@googlegroups.com<android-beginners%2Bunsubscr > >>>> i...@googlegroups.com> > >>>> For more options, visit this group at > >>>>http://groups.google.com/group/android-beginners?hl=en > > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Android Beginners" group. > > >> NEW! Try asking and tagging your question on Stack Overflow at > >>http://stackoverflow.com/questions/tagged/android > > >> To unsubscribe from this group, send email to > >> android-beginners+unsubscr...@googlegroups.com<android-beginners%2Bunsubscr > >> i...@googlegroups.com> > >> For more options, visit this group at > >>http://groups.google.com/group/android-beginners?hl=en > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Beginners" group. > > > NEW! Try asking and tagging your question on Stack Overflow at > >http://stackoverflow.com/questions/tagged/android > > > To unsubscribe from this group, send email to > > android-beginners+unsubscr...@googlegroups.com<android-beginners%2Bunsubscr > > i...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en