Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HardwareAccelerated false removes elevation

Setting hardware accelerated to false in my androidManifest removes elevation from my views..

When hardware accelerated is false, it removes elevation

When hardware accelerated is true, elevation is there but no smooth scrolling

Is there any way to solve this problem and i need both things in my app..

like image 840
Shariq Shah Avatar asked Apr 23 '18 07:04

Shariq Shah


1 Answers

You can't have elevation without hardware acceleration, so I suggest you set it true and find your problems, may be you draw something multiple time or ...

These links help you to solve your problem:

  • https://developer.android.com/guide/topics/graphics/hardware-accel.html#tips

  • https://stackoverflow.com/a/16432999/1105277

If you really don't want to enable it, you can use these solutions:

  • Android View shadow
like image 160
AliSh Avatar answered Nov 14 '22 00:11

AliSh