android(转载)
hjbbjh0521
这个作者很懒,什么都没留下…
展开
-
使用DialogFragment托管dialog
普通的 AlertDialog 在横竖屏切换时会被销毁,如果dialog上面有数据,也将丢失。解决方案是使用DialogFragment(http://developer.android.com/reference/android/app/DialogFragment.html) 。 使用 dialogFragment 通常需要复写两个方法: onCreateView(Layo转载 2015-06-09 11:02:07 · 523 阅读 · 0 评论 -
Android EventBus实战
转载自:http://blog.csdn.net/lmj623565791/article/details/40794879 1、概述 最近大家面试说经常被问到EventBus,github上果断down了一份,地址:https://github.com/greenrobot/EventBus,的确是个不错的框架,主要用于事件的发布和订阅。 EventBus定义:是一个发布转载 2015-06-09 10:48:02 · 475 阅读 · 0 评论