我想通過在上添加<item name="android:statusBarColor">@android:color/transparent</item>
到v21/styles.xml來使狀態欄變爲透明,但我一直在應用欄上方留下陰影,是否可以將其刪除?如何刪除應用程序欄上方的陰影?
編輯: 好的我認爲解決方案是移動應用程序欄佔據狀態欄空間並擴展應用程序欄的其他dp以匹配它的大小,所以我的問題是,是否可以移動或擴展應用程序酒吧高度向上?
activity_search.xml
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="@style/MyMaterialTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/colorPrimary"
app:popupTheme="@style/MyMaterialTheme.PopupOverlay"/>
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_search"/>
化妝仰角= 0 –
高於或低於?如果上面那麼它的colorPrimaryDark – Bhargav
@Bhargav在應用欄上方,這在狀態欄上可見。 – brettbrdls