Android 赢得的布局百分比';行不通

Android 赢得的布局百分比';行不通,android,xamarin.android,Android,Xamarin.android,我在谷歌上搜索Android中指定视图宽度和高度的方法。 我发现 Xamarin.Android.Support.Percent库 链接到官方示例: 我使用package manager获取此库,并从示例中复制粘贴的axml代码: <?xml version="1.0" encoding="utf-8"?> <android.support.percent.PercentFrameLayout xmlns:android="http://schemas.android.

我在谷歌上搜索Android中指定视图宽度和高度的方法。 我发现

Xamarin.Android.Support.Percent库

链接到官方示例:

我使用package manager获取此库,并从示例中复制粘贴的axml代码:

<?xml version="1.0" encoding="utf-8"?>
<android.support.percent.PercentFrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
  <View
      android:background="#f0f0f0"
      app:layout_widthPercent="50%"
      app:layout_heightPercent="50%"
      app:layout_marginTopPercent="25%"
      app:layout_marginLeftPercent="25%" />
</android.support.percent.PercentFrameLayout>

它甚至不能编译,我得到错误:

严重性代码说明项目文件行抑制状态错误号 找到了属性布局的资源标识符, 布局高度百分比,布局高度百分比, 布局图\利润率

有人知道是什么错了吗? 我对Xamarin和Android还很陌生。我是否需要在AndroidManifest.xml或AssemblyInfo.cs中编写一些内容?
还有什么建议吗?

@azizbekian没什么changed@azizbekian当我把这行代码改写成旧值时,它神奇地开始工作了。谢谢你的评论