Set search dialog text dynamically
Does anyone knows how to set the text of search dialog dynamically ? I want to realize the effect that when the search key pressed, a specific text can be initia开发者_开发百科lized in the search dialog. Waiting for your suggestions. Thx~~
@Override
public boolean onSearchRequested() {
startSearch("initial query", true, null, false);
return false;
}
精彩评论