Hello my friends,
I use searchview inside on toolbar:
Is it possible when i write something to show listview of results under that searchview?
p.s. I don't mean this one.
I use searchview inside on toolbar:
B4X:
Private sv As ACSearchView
Private si As ACMenuItem
Sub Activity_CreateMenu(Menu As ACMenu)
'Clear the menu
Menu.Clear
si = Menu.Add2(1, 1,"Profile", xml.GetDrawable("ic_account_circle_white_36dp"))
si.ShowAsAction=si.SHOW_AS_ACTION_ALWAYS
sv.Initialize2("Search", sv.THEME_DARK)
'sv.IconifiedByDefault = True
sv.QueryHint="User name"
'sv.SubmitButtonEnabled=True
'Clear the menu
Menu.Clear
'Add a menu item and assign the SearchView to it
si = Menu.Add2(2, 2, "search", xml.GetDrawable("ic_account_search_white_36dp"))
si.SearchView = sv
End Sub
Sub Search_QuerySubmitted (Query As String)
End Sub
Sub Search_Closed
End Sub
Sub Search_QueryChanged (Query As String)
End Sub
p.s. I don't mean this one.
Last edited: