1

I am currently building an app that uses the material design theme as a base theme.

However the action bar has a dark shadow below the action bar. I have tried everything I can think of, but I can't seem to get rid of it. Here is a screen shot showing what I mean: https://docs.google.com/file/d/0B_krkpxyd558V0p6a1NKZXFHeHc/edit?usp=docslist_api

If someone could tell me how I can get rid of it, I would much appreciate it.

Thanks Corey :)

Fishingfon
  • 1,034
  • 3
  • 19
  • 33

1 Answers1

9

Shadow is created by using elevation, here's how you can disable it programmatically:

getActionBar().setElevation(0);
Simas
  • 43,548
  • 10
  • 88
  • 116
  • That was perfect! Thanks heaps :) – Fishingfon Nov 16 '14 at 11:30
  • You can also do it in the styles with `0dp` as detailed in http://stackoverflow.com/questions/27960435/change-elevation-of-actionbar-by-theme. Then you don't have to set it for every activity. – jokeefe Apr 17 '15 at 23:40