Java 在Android 3.0中从actionbar中删除标题
我有一个要求,我必须制作一个从Android 3.0开始运行的应用程序。我当然不喜欢ActionBarSherlock 现在,我使用来自官方谷歌资源的以下代码替换了actionbar的背景Java 在Android 3.0中从actionbar中删除标题,java,android,Java,Android,我有一个要求,我必须制作一个从Android 3.0开始运行的应用程序。我当然不喜欢ActionBarSherlock 现在,我使用来自官方谷歌资源的以下代码替换了actionbar的背景 <resources> <!-- the theme applied to the application or activity --> <style name="CustomActionBarTheme" parent="android:Theme.Holo.
<resources>
<!-- the theme applied to the application or activity -->
<style name="CustomActionBarTheme"
parent="android:Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<!-- ActionBar styles -->
<style name="MyActionBar"
parent="android:Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/navigation_bar</item>
</style>
但是,主图标的默认值将被删除
getSupportActionBar().setIcon(R.color.transfrant);
删除标题栏
在活动下的清单中
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
android:label="@string/app_name"
更改操作栏名称。活动下的Android清单
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
android:label="@string/app_name"
改为
android:label=" "
问题2:如何删除右侧的默认选项图标,即三个点
从活动类中删除此方法
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// TODO Auto-generated method stub
return super.onCreateOptionsMenu(menu);
}
谢谢同样,正如我在问题中所问的,你知道我如何删除角落里的三个点吗。调用选项menui的人在我的应用程序中看不到任何点。请解释一下。