About the author

I am an Android developer for whom Android is the one and only love. I work as a freelancer which gets me and Android closer. I always love to share my learnings and love to learn from others knowledge too.

COMMENTS (31)
Reply

i have a problem with the text_selector.xml

it says an expected resource of type xml, i dont know whats the problem.
so, help ASAP

Reply

it also says do login for that valid email id and pass which i haven’t registered in this signup.. why? and also where we ‘ll get forgot password?

    Hi Ishal,

    This article is about only UI of Login, Signup Screens. Here no coding for registering user or forgot password. The error or message that you are getting to valid email id and password is because i put validation that email id and password should be entered and email should be in proper format.
    For proper functionality you have to do server side coding in php, .net or any other then that API you have to integrate with it.

    Thanks

Reply

how i can login and signup activities with MSSQL server and go to user profile after successful login?

Reply

Hello Sir,
I added imageview inside login_layout with png image(56,4 kB) then I got some lag with the animation.
How can to solve this ?
This is my imageview content :

Best Regards

Reja

    Hi Reja,

    You are putting Image directly to your root layout which is not correct way. Use below method to compress and scale the bitmap:

    public static Bitmap convertDrawableIntoBitmap(Context context, int resID, int width, int height) {
    Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), resID);
    return Bitmap.createScaledBitmap(bitmap, width, height, true);
    }

    The above method will return you Bitmap which you have to set to an ImageView.
    So if you had taken your root Layout as Linear or Relative inside that use ImageView with full height and pass the Width and Height of you current screen size.

    In this way you can avoid animation lag.

    Thanks

Reply

Hello Sir,
Thank you for your help,
Your solution decrease the animation lag, but I feel some animation delay for that animation.
When I’m go to signup_layout more fastest to load than login_layout. Also forgotpassword_layout more fastest to load than login_layout.
How can to solve this ?
Sorry for my bad english before.

Best Regards,

Reja

    Hi Reja,

    If you want to delay or make fast your animations then you have to change the duration of the animation which is given in animation xml files with attribute duration. Right now its 300ms duration which you can modify according to your need.

    Thanks

Reply

Hello Sir,
Thank you for your solution.
You saved my day..

Best Regards
Reja

Reply

how can i connect this app to my data base ?

Reply

This is with reference to your url for Login UI, Signup and forgot password UI http://www.androhub.com/login-signup-and-forgot-password-screen-design-android/

Since I’ve been following your tutorial my work is going pretty well, but I’m facing a little bit problem in ForgotPassword.xml as the page is done but whenever I click on the edit text to type the keypad appears resulting in to hiding of my edittexthint due to which I’m unable to see what I’m typing. I’ve followed the same for the xml code but don’t know why it is happening.

This is problem I’m facing, link is given below :
https://drive.google.com/open?id=0B8fdRh5_PUJCYmRERDI0M2ZtN0E

Thank you so much!

    Hi Alok,

    You are using custom background to your EditText which causes hiding Hint Text. So remove your custom background and try it will work.

    Thanks

Reply

android:drawableStart=”@drawable/password”
Error showing in drawable paasword in login_layout.xml

    Hi Siddhant Raj,

    Please check do you have any drawable with name password in drawable folder or not. The error is due to non availability of requested drawable.

    Thanks

Reply

My application is showing two errors and I am unable to resolve them.

Application is showing blank screen with the cross mark on top right side
and replaceLoginFragment(); in showing error.

    Hi Shubham,

    Can you please share more details :
    1. Share your xml file which is showing blank screen with cross mark.
    2. Share your Logs to know the actual error coming while replaceLoginFragment().

    Thanks

Reply

Getting an error:

Cannot resolve symbol ‘@anim/cycle’
Cannot resolve symbol ‘R’

Please help!

    Hi Adeel,

    You have not created cycle xml under anim directory. So please create an cycle xml which you can get from this article if you will find Cycle Animation. Add the cycle animation and rebuild your project your problem will get resolved.

    Thanks

Reply

dear Dr.Ddroid..
can u give me a new link to download the souce code? ican’t download the source code. thx

    Hi Dewi157,

    I tried downloading with same link and able to do so. Can you please try again and if still it is not downloading then share your email id so that i will send you code via email.

    Thanks

Reply

Hi Dr.Droid ..

I have tried this example of login . I am finding two errors i.e
1.I am getting a error in java class of Signup_Fragment.java and ForgotPassword_Fragment.java the error is
XmlResourceParser xrp = getResources().getXml(R.drawable.text_selector);– I am getting error for R.drawable.text_selector
2.I cannot find the file name replaceLoginFragment. // Replace Login Fragment on Back Presses
new MainActivity().replaceLoginFragment();

    Hi Aakash,

    Below are the solution for your questions:
    1.I am getting a error in java class of Signup_Fragment.java and ForgotPassword_Fragment.java : Remove the line which is creating error because that code is deprecated.
    2.I cannot find the file name replaceLoginFragment. // Replace Login Fragment on Back Presses : You need to create the replaceLoginFragment method in your MainActivity. Please check your code again.

    Thanks

Reply

Hi Dr.Droid thank you for your support , I have got the output but can you help me out with the email validation which you have provided in Utils.java I was getting error so I have modified it in order to get the output . And also can you help me out connecting with sql server database .

Reply

Dr.Droid,
I am getting in this regular expression “\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b”; , It is giving illegal escape character in string literal near (+\.) and thanks for the database example.

    Hi Aakash,

    I don’t know why email regular expression is creating issue in your project. Can you try below provided regular expression and check whether its working or not:

    String emailPattern = “[a-zA-Z0-9._-]+@[a-z]+\\.+[a-z]+”;

    Thanks

Reply

Dr.Droid ,

It is giving more errors in the expression .No problem I will try it out .but , thanks for your support..

Reply

sir….you are great…. thanx a lot…

Leave a Comment

Comment (required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Name (required)
Email (required)