Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Xamarin:删除SupportAppBar阴影_C#_Xamarin_Xamarin.android_Shadow_Appbar - Fatal编程技术网

C# Xamarin:删除SupportAppBar阴影

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=

我正在尝试删除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="@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;他什么也没做


你能帮我吗?非常感谢。

尝试使用活动的主题来完成此操作,谢谢!它工作得很好!