C# Xamarin中的.axml有问题

C# Xamarin中的.axml有问题,c#,xamarin,xamarin.android,C#,Xamarin,Xamarin.android,我对VS和Xamarin有些问题,但那是另一点, 我写了一个.axml文件,但我没有收到错误,也没有显示任何内容: 这是我的代码::。 如果有人能帮我,那就太好了: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:la

我对VS和Xamarin有些问题,但那是另一点, 我写了一个.axml文件,但我没有收到错误,也没有显示任何内容:

这是我的代码::。 如果有人能帮我,那就太好了:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/linearLayout_Phone"
android:layout_weight="1">
<TextView
    android:id="@+id/TextView"
    android:Layout_height="0dp"
    android:Layout_width="match_parent"
    android:layout_weight=".2"
    android:Text="TextView" />
<GridLayout
    android:layout_height="0dp"
    android:layout_width="match_parent"
    android:layout_weight=".8"
    android:rowCount="2"
    android:columnCount="2">
    <Button
        android:id="@+id/button1"
        android:layout_height="25dp"
        android:layout_width="wrap_content"
        android:text="button1"
        android:background="@android:color/holo_blue_dark" />
    <Button
        android:id="@+id/button2"
        android:layout_height="25dp"
        android:layout_width="wrap_content"
        android:text="button2"
        android:background="@android:color/holo_green_dark" />
    <Button
        android:id="@+id/button3"
        android:layout_height="25dp"
        android:layout_width="wrap_content"
        android:text="button3"
        android:background="@android:color/holo_orange_dark" />
    <Button
        android:id="@+id/button4"
        android:layout_height="25dp"
        android:layout_width="wrap_content"
        android:text="button4"
        android:background="@android:color/holo_red_dark" />
</GridLayout>
</LinearLayout>

您在TextView元素中拼错了属性名称。 属性名称区分大小写

你必须换车

<TextView
    android:id="@+id/TextView"
    android:layout_height="0dp"
    android:layout_width="match_parent"
    android:layout_weight=".2"
    android:text="TextView" />