Remove shadow below actionbar

I use actionbarsherlock. The piece of code below is responsible for changing it’s background to a custom one. <style name=”Widget.Styled.ActionBar” parent=”Widget.Sherlock.ActionBar”> <item name=”background”>@drawable/actionbar_bg</item> <item name=”android:background”>@drawable/actionbar_bg</item> <…> </style> <style name=”Theme.MyApp” parent=”@style/Theme.Sherlock.Light”> <item name=”actionBarStyle”>@style/Widget.Styled.ActionBar</item> <item name=”android:actionBarStyle”>@style/Widget.Styled.ActionBar</item> <..> </style> And it works for actionbarsherlock (on versions below honeycomb). But in ICS I have a shadow below actionbar which … Read more

Fragment MyFragment not attached to Activity

I’ve created a small test app which represents my problem. I’m using ActionBarSherlock to implement tabs with (Sherlock)Fragments. My code: TestActivity.java public class TestActivity extends SherlockFragmentActivity { private ActionBar actionBar; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setupTabs(savedInstanceState); } private void setupTabs(Bundle savedInstanceState) { actionBar = getSupportActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); addTab1(); addTab2(); } private void addTab1() { … Read more