Fishingfon
Fishingfon

Reputation: 1034

How to disable shadow action bar (android 5.0)?

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 :)

Upvotes: 1

Views: 2485

Answers (1)

Simas
Simas

Reputation: 44118

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

getActionBar().setElevation(0);

Upvotes: 9

Related Questions