hello guys, i am new in xamarin
i dont know why my buttons, textview, and etc stuck on top even i am use relative layout
for image https: //ibb.co/k26YZbq
anyone can help me, please
It should be @+id/xxx
not @id/xxx
, like this
<TextView android:id = "@+id/textView1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="Hello World!" /> <EditText android:id = "@+id/entry" android:layout_width = "match_parent" android:layout_height = "wrap_content" android:layout_below = "@+id/textView1" //here /> <Button android:id="@+id/ok" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:layout_below = "@+id/entry" //here android:layout_alignParentRight = "true" android:layout_marginLeft="10dp" android:text = "OK"/>
It works fine on my side .
Answers
The image :
This is a known issue .
Use "@+id/xxx" instead of "@id/xxx";
Check https://stackoverflow.com/questions/51842519/order-of-elements-in-axml-in-xamarin-android-leads-to-compilation-error#comment90652095_51842519
> The image :
No, if you look into xml there are texview and input text hidden by button.
The "ok" button align is matchParentRight
> This is a known issue .
>
> Use "@+id/xxx" instead of "@id/xxx";
>
> Check https:/ /stackoverflow.com/questions/51842519/order-of-elements-in-axml-in-xamarin-android-leads-to-compilation-error#comment90652095_51842519
Thank you for helping me
I've change to @id/xxx but nothing happen
@damhafafano
It should be
@+id/xxx
not@id/xxx
, like thisIt works fine on my side .
> @damhafafano
>
> It should be @+id/xxx not @id/xxx , like this
>
>
>
> It works fine on my side .
Thank you for your helps
Once again i say thank you @ColeX