Bug 7680 - Custom LinearLayout not showing in designer
Summary: Custom LinearLayout not showing in designer
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.2.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
Depends on:
Reported: 2012-10-05 07:01 UTC by Chris Hardy [MSFT]
Modified: 2012-11-16 12:34 UTC (History)
2 users (show)

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:

Description Chris Hardy [MSFT] 2012-10-05 07:01:53 UTC
"I've created a custom LinearLayout and when I try to use it, the designer no longer works. I have a message that says The layout could not be loaded: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup"
Comment 3 Alex P 2012-11-02 12:07:54 UTC
Any news on this issue ?
Comment 4 Lluis Sanchez 2012-11-16 12:03:00 UTC
The cast error is fixed, but the designer doesn't support rendering custom widgets. The custom widget will be shown as a placeholder.
Comment 5 Alex P 2012-11-16 12:34:12 UTC
Removing the crash is useless if you can't somehow render something. Could you find the first base class that you can render and use that one ?