C# Xamarin:删除SupportAppBar阴影
我正在尝试删除AppBar阴影。我读了很多帖子,尝试了一些技巧,但都没有效果 这是我的密码: 活动\u main.axml:C# Xamarin:删除SupportAppBar阴影,c#,xamarin,xamarin.android,shadow,appbar,C#,Xamarin,Xamarin.android,Shadow,Appbar,我正在尝试删除AppBar阴影。我读了很多帖子,尝试了一些技巧,但都没有效果 这是我的密码: 活动\u main.axml: <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:theme=
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:fitsSystemWindows="true" >
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:layout_scrollFlags="scroll|enterAlways" />
</android.support.design.widget.AppBarLayout>
我尝试在AppBarLayout中添加app:elevation=“0dp”,它使AppBar完全透明,但汉堡包按钮仍然工作,即使它没有显示
在工具栏中添加高程没有任何作用
在我的主题中添加0dp也使我的AppBar透明
在我的C代码中,SupportActionBar.Elevation=0;他什么也没做
你能帮我吗?非常感谢。尝试使用活动的主题来完成此操作,谢谢!它工作得很好!