Material-components-android: [Menu] android:editable is deprecated

Created on 25 Jul 2019  路  3Comments  路  Source: material-components/material-components-android

Description:

In the Menu docs it says to use android:editable="false" on the AutoCompleteTextView to disable user input which is marked as deprecated. Is there a replacement for this?

bug

Most helpful comment

You can use this

android:focusable='false'
android:cursorVisible='false'

All 3 comments

You can use this

android:focusable='false'
android:cursorVisible='false'

The recommended way according to lint is to use inputType instead of editable, however we had issues with that approach that I believe are still being worked out. Once editable is officially removed, we will update our guidance.

@dsn5ft There are usages of android:editable in this example for TextFields also.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TdevM picture TdevM  路  3Comments

Mirmuhsin picture Mirmuhsin  路  3Comments

jaychang0917 picture jaychang0917  路  3Comments

gabrielemariotti picture gabrielemariotti  路  3Comments

KelvinPac picture KelvinPac  路  3Comments