javaandroidpagerslidingtabstrip

Remove shadow below actionbar FragmentActivity


Still can't remove the shadow below the actionbar. I am using SlidingTabLayout, SlidingTabStrip, and FragmentActivity.

I already tried this:

actionBar.setBackgroundDrawable();

and in SlidingTabLayout:

tabTitleView.setTextColor(); 
tabTitleView.setBackgroundColor();

However, when setting the background color in tabTitleView the shadow is gone but I don't see the indicator color anymore.


Solution

  • I found solution on the reddit, you should to set windowContentOverlay to @null by defauld in your style.xml

    Or try this method from Android SDK to your action bar