android TabLayout如何显示影子顶部 我使用tablayout是底部如何制作阴影,就像这样
请帮助我?影子秀顶部<RelativeLayout
android:id="@+id/main_layout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".GlobalHub.GlobalActivity">
<android.support.v4.view.ViewPager
android:id="@id/viewpager"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/tablayout" />
<android.support.design.widget.TabLayout
singleLine="true"
android:id="@id/tablayout"
app:tabTextColor="@color/black"
app:tabMode="fixed"
app:tabGravity="fill"
app:tabIndicatorColor="@color/jetColor"
app:tabTextAppearance="@style/MyCustomTabLayout"
app:tabIndicatorHeight="6dp"
android:layout_width="match_parent"
android:layout_height="@dimen/_46sdp"
android:layout_alignParentBottom="true"
android:background="@drawable/shadow_tablayout"
/>