What is the boost in Android L?

Today I developed my first Android L apps and read the d.android.com/preview tips. They said that android: elevation will show me the shadows. But look at this:

<TextView android:id="@+id/tvTest5" android:layout_width="50dp" android:layout_height="50dp" android:layout_below="@id/btnTest1" android:layout_toRightOf="@id/tvTest4" android:layout_marginLeft="10dp" android:background="#000000" android:elevation="50dp"/> 

I do not see a shadow in my emulator. Am I doing something wrong or is it an Emulator bug? I am using Android Studio

+8
android android-5.0-lollipop android-elevation
source share
3 answers

I somehow decided. The problem was in the emulator. Now we ordered Nexus 5 and flashed Android L. Now it works fine

+1
source share

You should see the elevation when creating two views with different z-indices.

0
source share

You should watch a video talking about this:

Google I / O 2014 - Material Science: Android Application Development with Material

They said that altitude has strange problems if the value of Z does not differ between representations.

It starts at about 15:00.

0
source share

All Articles