About 2,590,000 results
Open links in new tab
  1. xml - Android EditText for password with android:hint - Stack Overflow

    Mar 22, 2011 · I'm expecting an EditText with android:hint="password" and android:inputType="textPassword" to have the hint 'password' displayed when my Activity first loaded, but behaves like a password field when user starts entering password.

  2. Edittext set for password with phone number input? (android)

    Dec 15, 2016 · As a little addition, for those who wants to do the stuff from the code: editText.setInputType(InputType.TYPE_CLASS_PHONE); editText.setTransformationMethod(PasswordTransformationMethod.getInstance());

  3. Make Input Type="Password" Use Number Pad on Mobile Devices

    Dec 29, 2022 · I want the text to be hidden as it is entered and I want the number pad to pop up when the user on the mobile device wants to enter the PIN. The number pad pops up when Type="Number" but not when Type="Password" and I can't (Or don't know how to) set Type="Number and Password". Any Ideas?

  4. Android password field example - Mkyong.com

    Nov 26, 2011 · In Android, you can use “android.widget.EditText“, with inputType="textPassword" to render a password component. In this tutorial, we show you how to use XML to create a password field, label field and a normal button.

  5. How to Make Input Type=“Password” & Use Number Pad.

    Dec 22, 2015 · For the password field, you just use input type password as below. <Input. type = "Password" placeholder = "Enter password ..." / For the number pad you can have input type number as below. It will only allow number entries and should force number pad. <Input. type = "Number" class = "sapUiSmallMarginBottom" placeholder = "Enter a Number ...

  6. Specify the input method type | Views | Android Developers

    Feb 11, 2025 · Every text field expects a certain type of text input, such as an email address, phone number, or plain text. You must specify the input type for each text field in your app so the system displays the appropriate soft input method, such as an on-screen keyboard.

  7. Android User Interface Design: EditText Controls - Envato Tuts+

    Aug 8, 2011 · One of the most powerful features of EditText controls is the ability to set its inputType in order to collect text, numbers, email addresses, and other information from the user. These attributes can be mixed and matched to allow for very flexible input controls on the screen.

  8. MAD Codes 7 to32 - 1 a program to accept username and password

    public void onClick(View v) {String uname = etUsername().toString(); String pwd = etPassword().toString(); if(uname("admin") && pwd("123")) {Toast(getApplicationContext(), "Login Successful", Toast_SHORT).show();} else {Toast(getApplicationContext(), "Login Unsuccessful", Toast_SHORT).show();}}});}} Output: <EditText android:id="@+id/email"

  9. Write A Program To Accept Username and Password From The …

    Both involve designing XML layout files and Java activity classes to build the user interfaces and handle input and output. The document describes two Android programming exercises. The first creates a login screen that accepts a username and password and displays a success message.

  10. Implement Email Validator in Android - GeeksforGeeks

    Aug 16, 2024 · Invoke the following code in the activity_main.xml file to implement the UI layout. Output UI: Step 3: Working with the MainActivity.java file. In this case, the pattern EMAIL_ADDRESS is used for demonstration purposes. However, there are 5 more patterns to get validate the input from the user. Those are:

Refresh