Android SDK中20更新打破了Eclipse的图形布局布局、图形、打破了、SDK

2023-09-04 05:08:58 作者:名字好难取

这是很奇怪的,但由于更新SDK版本20,图形化的布局不工作了在Eclipse中。他们只显示为一串使用的部件/部件的标签。

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.

我想提示我读了#1来修复(用鼠标右键单击该XML文件并选择图形编辑器,确保我的XML文件具有XML扩展,改变了API版本,不断变化的构建目标,清理项目等。 ,但它是完全一样的。

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.

我甚至只花了近1小时,卸载,然后重新安装了Android SDK - 没有成功

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?

编辑:我发现这个问题是由定义我自己的看法。

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" />

它工作得很好用previous ADT插件,但由于更新图形显示坏,无论我用这个片段的code ...

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 :)