android - Search View not respond when click in AppCompat Toolbar -


I write a code like this, but it does not work.

I just flipped the menu in Java, nothing

I used the toolbar (v7) in any problem here I am doing

(no click effect.)

Try this because, it works for me ...

  Menu xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: app = "http: //schemas.android.com/apk/res-auto" & Gt; & Lt; Item android: id = "@ + id / action_search" Android: icon = "@ android: drawable / ic_menu_search" app: showAsAction = "always" app: actionViewClass = "android.support.v7.widget.SearchView" Android: title = "Search" /> & Lt; / Menu & gt;  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -