【发布时间】:2016-04-13 01:29:02
【问题描述】:
您好,我需要在标签布局下添加阴影(例如在 Skype 中)。
我的活动 xml:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.Toolbar xmlns:local="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:background="@color/splashGreenTop"
local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
local:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
<android.support.design.widget.TabLayout
android:id="@+id/tab_layout"
android:layout_below="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:elevation="0dp"
android:minHeight="?attr/actionBarSize" />
<FrameLayout
android:layout_width="match_parent"
android:layout_below="@+id/tab_layout"
android:id="@+id/tabContainer"
android:layout_height="match_parent" />
</RelativeLayout>
当我将android:elevation="10dp" 添加到 Tablayout 时,阴影被添加到底部和顶部.. 我只需要底部。看图...
我该怎么做? 提前致谢。
【问题讨论】:
-
我有一个像你这样的问题..你有解决问题吗?你能读懂我的问题吗? stackoverflow.com/questions/54174641/…
标签: android xml toolbar shadow android-elevation