I couldn't get help from any of the previous questions/answers, been trying this around for a whole lot now. So the problem is that I can't seem to change the color of the navigation tab (tabbed view) correctly. I am using API 21 with support repos.
If I use
ColorDrawable cd = new ColorDrawable(getResources().getColor(R.color.appbar));
actionBar.setBackgroundDrawable(cd);
It only colors the appbar-part, which is the top part of the whole top menu bar.
If I use
actionBar.setStackedBackgroundDrawable(cd);
it does color the tab-part, but at the same time it changes the top-parts background to light grey, regardless if I also call
actionBar.setBackgroundDrawable(cd);
or not. So below is a picture where are the 2 situations explained, and in the bottom a picture of what I'd like to have. Thanks!
Link to picture: https://onedrive.live.com/redir?resid=E71EFAAF41D1B253!9581&authkey=!AIj2vWVJIKIfVUo&v=3&ithint=photo%2cpng