Action Bar Fragment Activity

拟墨画扇 提交于 2019-12-18 12:48:06

问题


I'm triying to migrate my app from actionbarsherlock to Google's actionbarcompat, but ActionBarFragmentActivity does not exist. Do I have to use ActionBarActivity or there is another way?

Thanks in advance, Diego.


回答1:


Look here. This should help you out.

http://android-developers.blogspot.in/2013/08/actionbarcompat-and-io-2013-app-source.html

An Excerpt:

Extend Activity classes from ActionBarCompat: ActionBarCompat contains one Activity class which all of your Activity classes should extend: ActionBarActivity. This class itself extends from FragmentActivity so you can continue to use Fragments in your application. There is not a ActionBarCompat Fragment class that you need to extend, so you should continue using android.support.v4.Fragment as the base class for your Fragments.



来源:https://stackoverflow.com/questions/18451575/action-bar-fragment-activity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!