Bug 17719 - Placing a TextView on an ImageView breaks the designer
Summary: Placing a TextView on an ImageView breaks the designer
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.10.2
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2014-02-12 03:48 UTC by René Ruppert
Modified: 2014-03-26 08:11 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description René Ruppert 2014-02-12 03:48:49 UTC
The following XML makes the designer view go white and show a loading spinner for ever. Sometimes it will also show an empty (white) error dialog.

<ImageView
        android:src="@drawable/apploading_cloud"
        android:layout_width="match_parent"
        android:id="@+id/imageView1"
        android:layout_height="wrap_content"
        android:layout_marginBottom="50dp">
        <TextView
            android:text="00%"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:layout_width="match_parent"
            android:layout_height="fill_parent"
            android:id="@+id/InitApp_textPercentage"
            android:gravity="center_horizontal|bottom"
            android:layout_marginBottom="10dp" />
    </ImageView>

VS 2013
Xamarin Android 4.12
Comment 1 Lluis Sanchez 2014-02-12 09:35:28 UTC
This XML is invalid. An ImageView can't contain a TextView. The designer should not show the spinner in this case, but an error message. I'll see why the message is not being shown.
Comment 2 Lluis Sanchez 2014-02-12 10:30:21 UTC
The error message issue has been fixed. The fix will be available in upcoming releases. Thanks for reporting.
Comment 3 Udham Singh 2014-03-26 08:11:52 UTC
I have checked this issue with following builds:

Windows 8.1
VS 2013
Xamarin.Android 4.13.00004

Mac OS X 10.9.2
Xamarin Studio : 4.2.3 (build 60)
Xamarin.Android : 4.13.0 (Enterprise Edition)

Screencast for Windows : http://screencast.com/t/h4B6A0fu
Screencast for Mac : http://screencast.com/t/JpfTlbRVr11

Now this issue is working fine. Hence closing this issue.