V
V
Vlad2015-09-14 13:42:24
Android
Vlad, 2015-09-14 13:42:24

How to set shadows via xml under android 4?

I'm racking my brains on what attribute to set the shadow under the cards. I'm trying android:elevation, but it works on the Android 5 API. However, there are a bunch of applications on the 4th droid with shadows. How does everyone do it?
I would be grateful for a clear explanation and links to examples :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Perelygin, 2015-09-15
@disablesilence

on the 4th under the cards it also works, only in the root element add xmlns:app=" schemas.android.com/apk/res-auto " and where you need to use elevation:
app:elevation="4dp"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question