简体   繁体   English

在Android Studio 3.0中,我想在设备上看到布局预览设计,但不幸的是它没有显示。请帮助我

[英]In Android Studio 3.0 i want to see layout preview design on device but unfortunately it is not showing.Please help me

这是该屏幕的屏幕截图,在安装Android Studio 3.0之后,我遇到了这个问题。

Click on the theme selector in the preview window ("MaterialTheme") and select an AppCompat one (or make your theme have that as parent). 单击预览窗口中的主题选择器(“ MaterialTheme”),然后选择一个AppCompat(或将您的主题作为父主题)。

The support components won't get rendered unless you select an AppCompat theme. 除非您选择AppCompat主题,否则不会渲染支持组件。 I guess the MaterialTheme is your custom one, so just make sure it uses the appropriate theme as parent. 我想MaterialTheme是您的自定义主题,因此只需确保它使用适当的主题作为父主题即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM