自从我开始用Android编程以来,我就一直在使用Android,因为我认为这是Android最好的IDE之一。
但是,现在当我想将元素放到UI设计编辑器(使用gui (而不是文本)的设计)时,元素就不会出现了。
有什么想法吗?
谢谢。
发布于 2018-07-27 06:11:34
试试下面的方法也许能帮到你
- Go in Design part, from the design part select Design Surface icon (Three Layer icon) and click on Force refresh layout.
- From the file menu select "Invalidate caches and Restart".
- From the design section please try the layout with different themes.
以上所有的解决方案都是暂时的,可能是你在设计中做错了什么,或者是建筑不合适,所以请做。
发布于 2018-07-27 05:57:08
尝试失效缓存/从文件重新启动,从->选择失效缓存/重新启动->,选择失效和重新启动。
这是我的工作。
发布于 2018-07-27 06:04:16
选择另一个主题(不包括Holo,例如主题)
这是一个常见的问题。通过将res/value/styes.xml更改为
<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>https://stackoverflow.com/questions/51551514
复制相似问题