Hmm, in principle your xml file is ok, but the parser might take a dim view of some of the linebreaks, but I assume they come from the email formatting, not from you, and that your image file is there also.I cannot see anything wrong with it, so it might be something silly like the file being in the wrong directory. Ludwig
2008/10/23 dileep singh <[EMAIL PROTECTED]> > HI ludwig, > i am already having loginscreen.xml file in my layout file.but still i am > getting same error.xml file is: > > <? > xml version=*"1.0"* encoding=*"utf-8"* ?> > > <RelativeLayout xmlns:android=*"http://schemas.android.com/apk/res/android > "* > > android:layout_width=*"fill_parent"* > > android:layout_height=*"wrap_content"* > > android:padding=*"5dp"*> > > <ImageView android:id=*"@+id/imgAtrexis"* > > android:src=*"@drawable/atrexis"* > > android:layout_width=*"wrap_content"* > > android:layout_height=*"wrap_content"* > > android:layout_alignParentTop=*"true"* > > android:layout_centerHorizontal=*"true"* > > android:padding=*"10dp"* /> > > <TextView android:id=*"@+id/lblUsername"* > > android:layout_width=*"wrap_content"* > > android:layout_height=*"wrap_content"* > > android:layout_below=*"@id/imgAtrexis"* > > android:text=*"Username:"* /> > > <EditText android:id=*"@+id/txtUsername"* > > android:layout_width=*"fill_parent"* > > android:layout_height=*"wrap_content"* > > android:singleLine=*"true"* > > android:layout_below=*"@id/lblUsername"* > > android:layout_marginBottom=*"5dp"* /> > > <TextView android:id=*"@+id/lblPassword"* > > android:layout_width=*"wrap_content"* > > android:layout_height=*"wrap_content"* > > android:layout_below=*"@id/txtUsername"* > > android:text > =*"Password:"* /> > > <EditText android:id=*"@+id/txtPassword"* > > android:layout_width=*"fill_parent"* > > android:layout_height=*"wrap_content"* > > android:layout_below=*"@id/lblPassword"* > > android:password=*"true"* > > android:singleLine=*"true"* > > android:layout_marginBottom=*"10dp"* /> > > <CheckBox android:id=*"@+id/cbRem"* > > android:layout_width=*"wrap_content"* > > android:layout_height=*"wrap_content"* > > android:layout_centerHorizontal=*"true"* > > android:layout_below=*"@id/txtPassword"* > > android:text=*"Remember Me"* /> > > <Button android:id=*"@+id/btnSign"* > > android:layout_width=*"80dp"* > > android:layout_height=*"wrap_content"* > > android:layout_below=*"@id/cbRem"* > > android:padding=*"10dp"* > > android:layout_centerInParent=*"true"* > > android:text=*"Sign In"* /> > > <View android:id=*"@+id/spacer1"* > > android:layout_width=*"fill_parent"* > > android:layout_height=*"10dp"* > > android:layout_below > =*"@id/btnSign"* /> > > <Button android:id=*"@+id/btnQuit"* > > android:layout_width > =*"80dp"* > > android:layout_height > =*"wrap_content"* > > android:layout_toLeftOf > =*"@id/btnSign"* > > android:layout_alignBottom > =*"@id/spacer1"* > > android:padding > =*"10dp"* > > android:text > =*"Quit"* /> > > <Button android:id=*"@+id/btnClear"* > > android:layout_width > =*"80dp"* > > android:layout_height > =*"wrap_content"* > > android:layout_toRightOf > =*"@id/btnSign"* > > android:layout_alignTop > =*"@id/spacer1"* > > android:padding > =*"10dp"* > > android:text > =*"Clear"* /> > > <TextView android:id=*"@+id/lblMessage"* > > android:layout_width=*"fill_parent"* > > android:layout_height=*"wrap_content"* > > android:layout_below=*"@id/btnSign"* > > android:text=*"Enter username and password"* /> > > <TextView android:id=*"@+id/lblPowered"* > > android:layout_width=*"wrap_content"* > > android:layout_height=*"wrap_content"* > > android:layout_alignParentBottom=*"true"* > > android:layout_alignParentRight=*"true"* > > android:textStyle > =*"bold"* android:textColor=*"#FFFFFF"* > > android:text > =*"Powered By Atrexis"* /> > > </RelativeLayout> > > On Thu, Oct 23, 2008 at 7:20 PM, Ludwig <[EMAIL PROTECTED]>wrote: > >> You will need a file loginscreeen.xml in your res/layout directory that >> defines the layout. Your Java code looks ok. Ludwig >> >> 2008/10/23 dilu <[EMAIL PROTECTED]> >> >> >>> hi >>> I am getting error in my java file as R.layout.loginscreen cannot be >>> resolved. my loginscreen. java file is as : >>> >>> package com.android.hello; >>> >>> import android.app.Activity; >>> import android.os.Bundle; >>> import android.util.Log; >>> >>> >>> public class LoginScreen extends Activity { >>> private static final String TAG = "LoginScreen"; >>> >>> @Override >>> public void onCreate(Bundle icicle) { >>> super.onCreate(icicle); >>> setContentView(R.layout.loginscreen); >>> Log.i(TAG, "onCreate() called!"); >>> } >>> } >>> >>> please help me out . >>> thanks. >>> >>> >>> >> >> >> >> >> >> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

