我在活动中添加了一个带有下拉菜单的操作栏,但它也显示了应用程序名称.
我的每个活动都有一个操作栏,每个活动都使用主题@android:style/Theme.Holo.Light.一个我的活动屏幕我想用下拉/微调菜单显示操作栏但我想隐藏应用程序标题.
我在另一个SO帖子上看到了这个解决方案,但它要求我更改全局主题设置,如果我理解正确,那么这种方法将从我的所有操作栏中删除标题.
我怎样才能做到这一点?
这是一个截图:

我已经像这里一样实现了微调器.现在我想将微调器放在ActionBar中(将微调器设置为CustomView到actionBar)但它不会出现在那里:(
Spinner spinner = (Spinner) findViewById(R.id.planets_spinner);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,
R.array.planets_array, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
actionBar.setCustomView(spinner);
Run Code Online (Sandbox Code Playgroud)
这是.XML
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/parkfragment"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<Spinner
android:id="@+id/planets_spinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
请不要建议使用ActionBar DropDown List,我不能使用它,因为我已经在使用ActionBar Tabs了.android不允许同时使用它们.任何帮助将不胜感激