简体   繁体   English

样式自定义对话框

[英]Styling Custom Dialogs

Is there any way, specifically in android studio, to see what one's custom dialog would look like without actually running the application? 有什么方法,特别是在android studio中,可以查看不实际运行应用程序的自定义对话框的外观? It seems that the Design view of layouts account only for entire-screen designs. 布局的“设计”视图似乎仅用于全屏设计。 It also seems that sometimes the way the "dialog" looks in the design view is wildly different than the way they look live. 似乎有时,“对话”在设计视图中的显示方式与实际使用时的方式也大不相同。

I would share some of my code, I know you guys love that, but this isn't exactly a coding question, is it? 我会分享一些代码,我知道你们都喜欢,但这不是一个编码问题,不是吗?

You can use third party tools and mirrors. 您可以使用第三方工具和镜像。 I think the closest you can get is by checking this out. 我认为你可以得到最接近的是通过检查出来。

This is hot swapping in general and you get interactive previews but like I said it is the closest you can get. 通常,这是hot swapping ,您会获得交互式预览,但是就像我说的那样,它是您可以获得的最接近的预览。 I haven't worked thoroughly with it but I think this should be what you are looking for. 我尚未对其进行彻底的研究,但我认为这应该是您想要的。

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

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