It is really strange, but since the update to SDK version 20, the graphical layouts are not working anymore in Eclipse. They only display as a bunch of ‘labels’ of the components/widgets used.
I tried the tips I read on Stackoverflow to fix that (right-clicking the XML file and selecting “Graphical Editor”, ensuring my XML file has an XML extension, changing the API version, changing Build Target, Clean Project etc., but it’s all the same.
I even just spent almost 1 hour to uninstall and then reinstall the Android SDK – without suçcess.
Any idea how to get my Graphical layouts back?
EDIT: I found out that the problem is caused by defining my own ‘view’.
<view
android:id="@+id/vs_mapview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
class="com.mytest.TapControlledMapView"
android:apiKey="0eaQ..."
android:clickable="true"
android:state_enabled="true" />
It worked fine with the previous ADT plugin, but since the update graphical display is broken wherever I use this snippet of code…
Just delete any custom device screen configuration you have added . It will solve the issue 🙂