Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the failure of Eclipse to display Android Design Interface

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Eclipse can not show Android design interface solutions, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

This paper introduces the solution that the Android design interface can not be displayed when developing Android programs with Eclipse.

When we use MyEclipse or Eclipse to develop Android programs, main.xml Design may not show the design interface, but the view attribute interface, as shown in the following figure:

Res/layout/main.xml, before upgrading SDK and ADT, this has always been the display interface, after the upgrade, click on this file, cut to Design, found that can not display the interface, but in the form of a table to display the property values of each view in the interface! This is due to sometimes incompatibility issues between ADT and SDK versions. Therefore, try to use the same version of ADT and SDK, and use the current version of ADT.

Solution:

Close the open main.xml, right-click the main.xml > > "open with" > > "Android Layout Editor" at the left navigation, the opening process is relatively slow, and you will see the design interface in a moment. ^ _ ^!

As shown in the following figure:

If the above methods do not work, we need to open the layout file, then close Eclipse/MyEclipse, and then reopen it, and you can see the layout interface when loading.

After reading the above, have you mastered the solution that Eclipse can't display the Android design interface? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report