简体   繁体   English

操作栏不可见

[英]Actionbar not visible

I have created an actionbar which has action items and fragment tabs. 我创建了一个操作栏,其中包含操作项和片段选项卡。 However,the actionbar and the fragment tabs are not visible in other activities. 但是,操作栏和片段选项卡在其他活动中不可见。 The manifest file also has the required: 清单文件还具有以下要求:

        <uses-sdk android:minSdkVersion="4"
          android:targetSdkVersion="11" />

How can i make the actionbar and fragment tabs permanent for the app? 如何使应用程序的操作栏和片段选项卡永久化?

// Set up the action bar.
final ActionBar actionBar = getActionBar();

I found this piece of code in my project. 我在我的项目中找到了这段代码。 I hope it helps you out. 我希望它可以帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM