P
P
pro4ainik2015-10-10 18:11:36
Android
pro4ainik, 2015-10-10 18:11:36

How to make shadows on android 4.2?

Good evening. Tell me how to make shadows on android 4.2? Somewhere I read that it is necessary to write like this android:elevation="5dp" but when I test on my device with android 4.2 there is no shadow. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Varakosov, 2015-10-10
@thelongrunsmoke

Update the support library. In older versions, shadows were not really drawn.

A
Andriy Biskup, 2015-10-10
@AndriyTheProgrammer

There is no support for elevation in API < 21 and most likely will not be. I myself faced such a problem . Is there a way to use shadows from Android L on previous versions of the API?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question