Why doesn't android:elevation?

Developing a calculator for Android, and when you create a markup round watches are faced with a problem, when specifying the android:elevation - does not draw the shadow. What is the error?

Development environment -
63555eee89fe464390d614ab80edb3d9.PNG

Emulator -
8db739d979c14c768f13cb53b84a6c0f.PNG

XML markup -
<?xml version="1.0" encoding="utf-8"?>
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="parent" android:layout_height="parent" tools:context=".MainActivity" tools:deviceids="wear_round" android:id="@+id/round_activity_main" style="@style/AppTheme" android:layout_centervertical="true" android:layout_centerhorizontal="true">

 <framelayout android:layout_width="wrap content" android:layout_height="wrap content" android:layout_alignparenttop="true" android:layout_alignparentstart="true" android:id="@+id/frameLayout" android:elevation="10sp" android:layout_alignparentend="true">

 <textview android:layout_width="fill_parent" android:layout_height="40sp" android:gravity="center" android:maxlines="2" android:id="@+id/tvResult" android:textstyle="bold" android:text android:fontfamily="sans-serif-light" style="@style/AppTheme" android:layout_marginleft="40sp" android:layout_marginright="40sp" android:layout_margintop="20dp">

</textview></framelayout>

 <android.support.v4.view.viewpager xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/pagerRound" android:layout_width="parent" android:layout_height="parent" style="@style/AppTheme" android:layout_below="@+id/frameLayout">

</android.support.v4.view.viewpager></relativelayout>


If you put android:elevation on TextView - shadow will be visible on the device.
September 19th 19 at 12:05
1 answer
September 19th 19 at 12:07
you can try RelativeLayout parent - set padding
and android:clipToPadding="false"

Find more questions by tags AndroidDesignXML