About 9,280,000 results
Open links in new tab
  1. Disabling of EditText in Android - Stack Overflow

    Jan 23, 2020 · To disable an EditText while keeping this properties, just use UI.setReadOnly(myEditText, true) from this library. If you want to replicate this behaviour …

  2. TextInputLayout | API reference - Android Developers

    If the EditText child is not a TextInputEditText, make sure to set the EditText's android:background to null when using an outlined or filled text field. This allows …

  3. Android EditText Disable Edit and Focus (read only TextView …

    Mar 31, 2019 · If you disable EditText using setEnabled(false), the style/color will change to light gray. To disable EditText (no focus and edit) wihout disabling it. editText.isFocusable = true …

  4. Hide the Soft Keyboard and Remove Focus from EditText in Android

    May 31, 2023 · You might be wondering how to automatically hide the keyboard and remove focus from an EditText (or its subclass) when a user clicks elsewhere in your app. In this post, …

  5. 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 …

  6. How to disable EditText in Android - Stack Overflow

    May 4, 2011 · you can use EditText.setFocusable(false) to disable editing EditText.setFocusableInTouchMode(true) to enable editing;

  7. android - EditText: how to enable/disable input? - Stack Overflow

    So in order to suppress any editing you should do following: new InputFilter() public CharSequence filter(CharSequence src, int start, int end, Spanned dst, int dstart, int dend) …

  8. Making textinputlayout uneditable and setting click event on it

    Sep 30, 2017 · Set TextInputLayout android:clickable="true". Set TextInputEditText android:clickable="true" and android:focusable="false". Set View.OnClickListener on both …

  9. android - How To Make TextInputEditText Read-only? - Stack Overflow

    Apr 11, 2019 · Try to add Edittext.setEnabled(false); or android:editable="false" to your view.

  10. Android - can't hide `TextInputLayout ... - Stack Overflow

    Sep 19, 2019 · Try setting the background to null for TextInputLayout. You can use: <com.google.android.material.textfield.TextInputLayout. app:boxStrokeWidthFocused="0dp" …

  11. Some results have been removed
Refresh