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
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en