Hi, If you still see the problem.
Change it to : android:layout_gravity="@id/btnSign" Regards, Dhiwakar On Oct 21, 7:07 am, Peli <[EMAIL PROTECTED]> wrote: > You should not use the '+' in: > android:layout_toRight="@+id/btnSign" > > Replace it by: > android:layout_toRight="@id/btnSign" > > Peli > > On Oct 21, 3:24 pm, "dileep singh" <[EMAIL PROTECTED]> wrote: > > > HI PELI, > > THIS IS MINE login_screen.xml file > > > <?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/Quit"* android:layout_width=*"80dp" > > * > > > android:layout_height=*"wrap_content" > > * > > > android:layout_toLeft=*"@id/btnSign" > > * > > > android:layout_alignBottom=*"@id/spacer1"* android:padding=*"10dp" > > * > > > android:text=*"Quit"* /> > > > <Button android:id=*"@+id/Clear"* android:layout_width=*"80dp" > > * > > > android:layout_height=*"wrap_content" > > * > > > android:layout_toRight=*"@+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 Tue, Oct 21, 2008 at 6:50 PM, shailesh prakash <[EMAIL PROTECTED]>wrote: > > > > Hi dilu, > > > As I can say with above details, you are using SDK 1.0 and the code > > > you are writing is of style m5. If so see documentation and changes > > > for 1.0 > > > Regards > > > Shailesh > > > > On Tue, Oct 21, 2008 at 6:30 PM, dilu <[EMAIL PROTECTED]> wrote: > > > > > Hi' > > > > I am trying to create a login page with user name and password. > > > > In source file i have created two java file one is homescreen.java > > > > file and another one is loginscreen.java file. > > > > In homescreen.java file error is coming like this "The method > > > > onActivityResult(int, int, Intent) in the type Activity is not > > > > applicable for the arguments (int, int, String, Bundle)." > > > > part of the code is :- > > > > protected void onActivityResult(int requestCode, int resultCode, > > > > String data, Bundle extras) { > > > > super.onActivityResult(requestCode, resultCode, data, > > > extras); > > > > > if (requestCode == ACTIVITY_LOGIN) { > > > > // If the request was cancelled, then we are cancelled as > > > > well. > > > > if (resultCode == RESULT_CANCELED) { > > > > finish(); > > > > > and in the login_screen.xml file I am getting error like this > > > > No resource identifier found for attribute 'layout_toRight' in package > > > > 'android' > > > > No resource identifier found for attribute 'layout_toLeft' in package > > > > 'android. > > > > > please help me out. > > > > thanks. > > > > dilu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

