Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Honeycomb 操作栏中放置了一个 Android AutoCompleteTextView。问题是即使 AutoCompleteTextView 有焦点,它也不显示光标,所以最终用户认为该框没有焦点。
将这些属性添加到您的 AutoCompleteTextView,使光标变为黑色:
android:textColor="#000000" android:textCursorDrawable="@null"
来自:https ://stackoverflow.com/a/9165217/1267112