[英]In Android Studio 3.0 i want to see layout preview design on device but unfortunately it is not showing.Please help me
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.