Android Studio,是否有刷新按钮.每次在xml中进行更改时,我都需要关闭并重新打开Studio以查看设计上的更改 [英] Android Studio, Is there a refresh button. Every time I make changes in xml I need to close and reopen studio to see changes on the design
问题描述
每次我都尝试在xml中对设计进行硬编码;设计中不存在更改;就像我需要关闭然后重新打开Android Studio才能查看所做的更改.与将图像添加到可绘制资源文件夹中相同;我需要关闭然后重新打开Android Studio,以便Android Studio甚至可以识别出drawable文件夹中有一个文件.
Every time I try to hardcode designs in the xml; the changes are not present in the design; like I need to close and reopen Android Studio for me to see changes that I have made. Same with adding images to the drawable resource folder; I need to close and reopen Android Studio, so that Android Studio can even recognize that there is a file in the drawable folder.
就像Android Studio尚未及时进行更改一样,因此需要将其关闭并再次打开.是否有刷新按钮或用于此的东西;或有什么可能解决这个问题?
It is like Android Studio is not up date to changes made and thus needs to be closed and opened again. Is there a refresh button or something for this; or what could possibly fix this?
推荐答案
您可以尝试重建项目(在构建菜单中)
You can try Rebuild the Project (In build menu)
OR
设计视图中有一个刷新"选项.单击强制刷新布局"(这可能会因Android Studio版本而异)
There is a Refresh option in design view. Click on Force Refresh Layout (This may vary as per Android Studio versions)
这篇关于Android Studio,是否有刷新按钮.每次在xml中进行更改时,我都需要关闭并重新打开Studio以查看设计上的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!