About 2,730,000 results
Open links in new tab
  1. How to set default value for TextInputLayout in Android

    Nov 13, 2019 · Turns out you can use the android:text attribute and setText() on the inner TextInputEditText element, it just isn't mentioned in the docs or suggested by Android Studio. …

  2. TextInputLayout | API reference | Android Developers

    Layout which wraps a TextInputEditText, EditText, or descendant to show a floating label when the hint is hidden while the user inputs text. Also supports: Password visibility toggling via …

  3. Android TextInputLayout Example - DigitalOcean

    Aug 3, 2022 · Floating Hints are enabled by default in a TextInputLayout. To disable it we need to add the following attribute inside the tag : app:hintEnabled="false". The below xml code is from …

  4. How to Use Material Text Input Layout in Android?

    Oct 23, 2020 · So in this article, we’ll implement the Text Input Layout in android using the Material design library. Step 1: Create a New Project. To create a new project in Android …

  5. TextInputLayout Styling - Medium

    Mar 10, 2020 · Change default outline border color for TextInputLayout. Styling of labels, errors and helper text separately from the input text. Set custom accent and error colors to EditText …

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

    Feb 11, 2025 · Always declare the input method for your text fields by adding the android:inputType attribute to the <EditText> element. Figure 1. The phone input type. For …

  7. Android: Make TextInputLayout Read-Only - Stack Overflow

    Nov 23, 2019 · To disable the TextInputLayout just use: <com.google.android.material.textfield.TextInputLayout. android:enabled="false" . ..> It works …

  8. Create an input method | Views | Android Developers

    May 12, 2025 · Android text fields let you set a specific input type, such as free-form text, numbers, URLs, email addresses, and search strings. When you implement a new IME, detect …

  9. How to use TextInputLayout in Android Studio - Stack Overflow

    Jun 12, 2021 · You can use TextInputLayout to show an error to the user. It seems what you want to do is get the text from the input field, which is the EditText. What you need to do is give the …

  10. There is always a default background on TextInputLayout in Android

    May 15, 2019 · I have TextInputLayout and TextInputEditText like this <com.google.android.material.textfield.TextInputLayout android:id="@+id/loginUsernameText" …

  11. Some results have been removed
Refresh