Я новичок в Xamarin, я вижу учебники, подобные приведенным здесь: https://docs.microsoft.com/en-us/xamarin/android/get-started/hello-android/hello-android-quickstart?tabs=vswin
, и предполагается, что дизайнер axml "привязывает" элементы управления к границе других элементов управления, которые вы перечислили, номой не работает таким образом.Это просто складывает их друг на друга.Любая подсказка, как исправить это?Я искал некоторое время, но кажется, что ни у кого больше нет этой проблемы.
Например, все они просто помещаются в верхнем левом углу панели и даже когда расположены "правильно"внизу другого элемента управления они просто привязываются к верхнему левому углу.
Редактировать: Общий доступ к XML
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minWidth="25px"
android:minHeight="25px"
tools:gridSpec="1|8|#0093eeff|K:#ee8700ff:16,l:72,l:16,r|S:#83ee00ff:16,0,l:16,56,l:16,0,r">
<TextView
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="25px"
android:minHeight="25px"
android:id="@+id/textView1"
android:layout_toLeftOf="@id/textView1"
android:layout_toRightOf="@id/editText1" />
<TextView
android:text="Text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/PhoneNumberText"
android:id="@+id/textView2" />
<Button
android:text="Translate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/PhoneNumberText"
android:id="@+id/TranslateButton"
android:layout_above="@id/PhoneNumberText" />
<EditText
android:layout_height="wrap_content"
android:layout_below="@id/PhoneNumberText"
android:id="@+id/PhoneNumberText"
android:layout_toLeftOf="@id/textView1"
android:layout_marginTop="0.0dp"
android:layout_marginBottom="0.0dp"
android:text="1-855-xamarin"
android:layout_width="wrap_content" />
</RelativeLayout>