I have a CustomView that works with pre-Lollipop, now I tried applying android:elevation
and android:translateZ
on Lollipop devices, but it doesn't seem to work.
<com.example.CustomView android:id="@+id/myview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:elevation="10dp"> </com.example.CustomView>
What am I missing?
source share