Использование Xamarin в Visual Studio 2015 Я пытаюсь редактировать файл Main.axml. в файле У меня есть элемент TextView:android: layout_below не работает
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/relativeLayout1" >
<TextView
android:text="Search By Postal Code"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/PostalCodeSearchLabel"
android:layout_margin="10dp" />
<EditText
android:inputType="number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/PostalCodeSearchLabel"
android:id="@+id/zipCodeEntry"
android:layout_marginLeft="10dp"
android:layout_marginBottom="10dp"
android:width="165dp" />
<Button
android:id="@+id/ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/zipCodeEntry"
android:layout_alignParentRight="true"
android:layout_marginLeft="10dp"
android:text="OK" />
</RelativeLayout>
Но линии «layout_below» показывает, как недействительные и элемент не отображается должным образом. Все примеры, которые я прочитал, показывают, что это допустимый параметр, но он не работает. Почему?
Пожалуйста, дайте мне знать, если это работает – peter