我試圖刪除陰影下使用TabLayout,它是在一個正常的佈局(而不是作爲工具欄或操作欄的一部分)定義的陰影。刪除下面的陰影TabLayout android
設置主題爲
<item name="android:windowContentOverlay">@null<item/>
或
<item name="windowContentOverlay">@null<item/>
沒有工作。
另外,將高程設置爲0也沒有幫助。
<android.support.design.widget.TabLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:background="@android:color/white"
app:backgroundTint="@android:color/transparent"
app:tabIndicatorColor="@android:color/transparent"
app:tabMode="scrollable"/>
退房這個答案[鏈接](http://stackoverflow.com/questions/2931953 /越來越擺脫這個頂級的活動 - 安卓) –
你是認真的嗎?這正是我所說的我.. – Dus
好吧,但我試過你的代碼,我沒有得到任何陰影在API 21(Lolipop)你能告訴我你測試你的應用程序和升級API API級別上的API的API或更高 –