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...@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...@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...@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...@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

Reply via email to