0

I searched a lot and I couldn't find any useful post. When I open my application (application use sherlock fragment ) shows black screen,application name with blue line in header and after 2 seconds appears splash screen. What should I do for passing this.. So when I press application button it show directly splash screen.

here is my style that I use

 <style name="Theme.MyTheme" parent="@style/Theme.Sherlock">
        <item name="android:actionBarItemBackground">@drawable/trans</item>
        <item name="android:buttonStyle">@style/ButtonMyTheme</item>
        <item name="android:imageButtonStyle">@style/ImageButtonMyTheme</item>
        <item name="android:editTextStyle">@style/EditTextMyTheme</item>
        <item name="android:spinnerStyle">@style/SpinnerMyTheme</item>
        <item name="android:dropDownSpinnerStyle">@style/SpinnerMyTheme.DropDown</item>
        <item name="android:spinnerDropDownItemStyle">@style/SpinnerDropDownItemMyTheme</item>
    </style> 
pmb
  • 2,327
  • 3
  • 30
  • 47

2 Answers2

0

To display a resource for the background, and remove the title bar, you also need these nodes.

<item name="android:windowBackground">@drawable/splash</item>
<item name="android:windowNoTitle">true</item>
Tom Bowers
  • 4,951
  • 3
  • 30
  • 43
0

To remove that blue line with header you need to add just below line in your custom theme and it will work for you.Set that theme as application Theme.

<item name="android:windowNoTitle">true</item>
baldguy
  • 2,090
  • 1
  • 16
  • 25