Forum Visual Studio

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Designer Does Not Design As Expected

SeikoSantanaSeikoSantana USMember
edited June 2020 in Visual Studio

I have just downloaded Xamarin on my Visual Studio. I started designing the xml, and the designer preview just don't respond to some changes i made in the xml or the properties window. So, it is not even possible to design the UI with Xamarin.Android, via xml or designer. I thought it'll be nicer than Android Studio.

For a very simple thing, to align TextView below, it simply doesn't work, no matter which id i assign to the layout_below.

This is the xml.
`

<TextView
    android:text="Current"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/Current"
    android:layout_below="@id/Title"
    android:paddingTop="2dp"
    android:paddingLeft="4dp" />

<TextView
    android:text="Voltage"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/lblVoltage"
    android:layout_below="@id/Current"
    android:paddingTop="2dp"
    android:paddingLeft="4dp" />

`

And this is how the designer renders it.

After restarting Visual Studio, it will display correctly.

Sign In or Register to comment.