2

I am a beginner in android development.I am very confused of seeing this shadow above booking details.i want to know what it is? And how to fix it?

[1]

PEHLAJ
  • 9,980
  • 9
  • 41
  • 53
Suhail
  • 59
  • 7

2 Answers2

3

If you want to hide shadow from upper part of the drawer then ..

1) It is your actionbar drawn partially. so it is appearing as shadow.

2) to Remove that shadow , I had to apply app:insetForeground="@null" to the NavigationView in xml

Tejas Pandya
  • 3,987
  • 1
  • 26
  • 51
1
drawerLayout.setScrimColor(getResources().getColor(android.R.color.transparent));

Try this code .

Arjun Gurung
  • 431
  • 3
  • 17
  • @Suhail if this is working then you should accept it as answer. – Arjun Gurung Aug 06 '17 at 08:30
  • 1
    it's not working man.I thought this was the answer.but i mistaken.I still have the problem.But I appreciate your efforts.Anyone Knows Correct answer please Tell me.. – Suhail Aug 06 '17 at 09:10
  • I had similar problem where I was getting weird "shadow" kind of dark border around outer edge of drawer layout. This fixed it. +1 – nayakasu Oct 07 '22 at 07:57