android:imeOptions="actionSearch" android:searchSuggestAuthority="com.xxx.provider.searchsuggestion" android:searchSuggestSelection=" ? "/> 解決辦法: SearchView有一個(gè)setSubmitButtonEnabled方法,設(shè)置為true即可,搜索框不為空就會(huì)顯示。效果如下圖: 在onCreateOptionsMenu中inflate后調(diào)用,記得判斷API Level。 以上就是 對設(shè)備 HTC One S解決SearchView時(shí)軟鍵盤...
www.dbjr.com.cn/article/891...htm 2025-4-29