开发者

Is it possible to have a custom menu added when calling an intent?

I am wondering i开发者_如何学Gof it is possible to keep my application's option menu available even when the application calls an intent which brings up the contact list? I would like my settings option to be available everywhere within the application.


You menu will only be available in your app , other apps cant use it. To make sure every activity has a menu create the menu in a base Activity Class and make all your activities extent it.


You can have the same menu show on every activity simply by inflating it in each activity. It will be even more clean if you subclass Activity and give it this functionality.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜