Android 将阴影投射到片段工具栏上的状态栏
我将一个工具栏从我的活动布局移动到了一个片段布局,现在状态栏在工具栏上投射了一个模糊的阴影(上图),而不是在状态栏停止和工具栏开始的位置(下图)有一个清晰的轮廓。是否有人知道如何修复此问题(即防止状态栏在片段工具栏上投射阴影) 活动:Android 将阴影投射到片段工具栏上的状态栏,android,android-fragments,android-toolbar,Android,Android Fragments,Android Toolbar,我将一个工具栏从我的活动布局移动到了一个片段布局,现在状态栏在工具栏上投射了一个模糊的阴影(上图),而不是在状态栏停止和工具栏开始的位置(下图)有一个清晰的轮廓。是否有人知道如何修复此问题(即防止状态栏在片段工具栏上投射阴影) 活动: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/my_frag" android:layout_width="
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/my_frag"
android:layout_width="match_parent"
android:layout_height="match_parent" />
片段:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<android.support.v7.widget.Toolbar
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:id="@+id/my_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize" />
</FrameLayout>
活动将片段添加到我的框架中
Fragment使用my_工具栏调用setSupportActionBar请发布可用于复制您的issue@fractalwrenchUpdatedFragment布局中没有工具栏时是否会发生相同的行为?@Fractal扳手如果工具栏位于活动布局中,则会发生底部图像,顶部图像是当工具栏移动到片段布局而不是活动布局时发生的情况。我将把它迁移到片段中,因为我将处理协调器布局和gridview。请发布可用于复制您的issue@fractalwrenchUpdatedFragment布局中没有工具栏时是否会发生相同的行为?@Fractal扳手如果工具栏位于活动布局中,则会发生底部图像,顶部图像是当工具栏移动到片段布局而不是活动布局时发生的情况。我将它迁移到片段中,因为我将使用协调器布局和gridview进行操作。