开发者

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;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜