简体   繁体   中英

How to select all text in AutoCompleteTextView Android

I want to select the full text when the AutoCompleteTextView is clicked,

I used android:selectAllOnFocus="true" but didnt work.

try this

    android:textIsSelectable="true"
    android:focusable="true"
    android:longClickable="true"

this is for TextView but might work for AutoCompletTextView

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM