如何使用相同的登出功能在应用程序中的所有活动? [英] how to use same logout function to all the activity in the application?
本文介绍了如何使用相同的登出功能在应用程序中的所有活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序已注销的头xml文件选项,并发生功能性相关的活动,我想在我的Android应用程序中使用相同的功能,所有的页面而不声誉。
如何做好这项工作?
In my application i have logout option on the header xml file and the functionality occurred related activity i want to use same functionality to all the page in my android application without reputation. how to do this work?.
推荐答案
你应该使用< incude>< /包括>
的Android功能合并你的头布局在所有的行吟诗人的布局。
you should use <incude></include>
feature of android to merge your Header layout in all othe layout.
这篇关于如何使用相同的登出功能在应用程序中的所有活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文