简体   繁体   中英

Android setFocusable on AutoCompleteText?

I was just wondering if setFocusable works with AutoComplete text view.

I looked for examples and implemented it but setFocusable (in my observation) works only with EditText. Does setFocusable works with AutoComplete text view?

If not, are there any ways to implement such?

http://developer.android.com/reference/android/widget/AutoCompleteTextView.html

According to documentation, it does. I also can make it not focusable simply calling setFocusable( ) .

Try to set also setFocusableInTouchMode( ) , maybe you have default focus set on it;

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