getSupportActionBar 使用 FragmentActivity [英] getSupportActionBar using FragmentActivity
本文介绍了getSupportActionBar 使用 FragmentActivity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在一个项目上使用片段活动,但似乎 v4 支持 FragmentActivity
没有 getSupportActionBar()
方法,我需要使用支持的为了使用 android.support.v7.app.ActionBar
I'm using fragment activity on one project, but it seems v4 support FragmentActivity
doesn't has getSupportActionBar()
method, and I need to use the support one in order to use android.support.v7.app.ActionBar
推荐答案
ActionBarActivity
确实支持您需要的方法,并且是 FragmentActivity
的子类.请参阅:http://developer.android.com/reference/android/support/v7/应用程序/ActionBarActivity.html
The ActionBarActivity
does support the method you require, and is a subclass of FragmentActivity
. See: http://developer.android.com/reference/android/support/v7/app/ActionBarActivity.html
这篇关于getSupportActionBar 使用 FragmentActivity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文