我想通过在上添加<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