谁能告诉如何在 Pager 片段中隐藏应用程序标题栏。

这应该足够了:
ActionBar bar = getActionBar(); // you might need to use getSupportActionBar() based on your project setup
bar.setDisplayShowTitleEnabled(false);
bar.setDisplayShowHomeEnabled(false);
沃伦是正确的。如果你想在你的主题中隐藏它,你可以通过继承一个不显示它的主题来做到这一点:
对于预蜂窝样式:
<style name="HiddenActionBar" parent="@android:style/Theme">
</style>
对于蜂窝+:
<style name="HiddenActionBar" parent="@android:style/Theme.Holo.NoActionBar">
</style>
我个人更喜欢这种方法,因为它可以将您的类从与 UI 相关的代码中解放出来,并且可以Activity通过在清单中更改应用程序的主题轻松地为每个类进行设置。