开发者

Adding Action Bar items during run time

Is there anyway to add Action Bar items on the event of a butto开发者_如何学编程n click or a list item click? I know about Action Mode but it is intended for multiple choices. So, my user interface requirement is that on clicking the list item, there should be a new action bar item for editing the selected item.


What you are describing is the entire reason why ActionMode was created. Catering for multiple choices is just one option available to you when using ActionMode.

You should really be using this rather than trying to find some other hack around it.

It provides callbacks to add action items and remove them once you are done.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜