Java ActionBar夏洛克动作栏赢得';不要隐藏在对话框中

Java ActionBar夏洛克动作栏赢得';不要隐藏在对话框中,java,android,actionbarsherlock,Java,Android,Actionbarsherlock,我正在加载已实施ActionBarSherlock的活动。当活动开始加载时,我将显示一个包含以下xml的启动屏幕: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/splash" android:layout_width="fill_parent"

我正在加载已实施
ActionBarSherlock
的活动。当活动开始加载时,我将显示一个包含以下xml的启动屏幕:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/splash"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:theme="@style/Theme.Sherlock.Light.NoActionBar">

    <ImageView
        android:id="@+id/logo"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:src="@drawable/splashlogo" />

</RelativeLayout>
我甚至试过:

getSupportActionBar().setDisplayShowHomeEnabled(false);
getSupportActionBar().setDisplayShowTitleEnabled(false);
但无论我做什么,我总是在启动屏幕上看到以下内容:


是否有我需要添加的内容或我做错了什么?

对话框前面的splashscreen中。setcontentView
行写入

  dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);

您是否延迟了启动屏幕的显示?它直接显示在“super.onCreate(savedInstanceState)”之后在
setcontentView
line write
requestWindowFeature(Window.FEATURE\u NO\u TITLE)之前的屏幕中使用
对话框。requestWindowFeature(Window.FEATURE\u NO\u TITLE)
工作正常!写一个答案@GrlsHu@Brianjs看看我的答案。
  dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);