如何在Android Studio 2.2上刷新预览? [英] How to refresh preview on Android Studio 2.2?
问题描述
现在在新的预览模式下的 Android Studio 2.2 上,没有没有刷新按钮:
Now on Android Studio 2.2 on new Preview mode, there are no more refresh button:
- 图片1:在Android Studio 2.2上预览(没有刷新按钮)
- 图片2:在Android Studio 2.1上预览(带有刷新按钮)
有人知道如何再次显示它吗?还是捷径?
Does anyone know how to display it again? Or with shortcut maybe?
编辑:如果我以示例方式更改了可绘制对象,并且该更改未出现在布局中,则对我适用的唯一方法是关闭并重新启动项目.如果关闭布局并重新打开,则不会发生任何事情.使用同步"按钮获得相同的结果.
If I change a drawable by example and that the change does not appear in the layout, the only method that works for me is closed and restart the project. If I close the layout and as I re-opens nothing happens. Same result using the "Synchronized" button.
推荐答案
刷新功能未删除,它已经存在;刷新非常简单:
Refresh feature is not removed, it is there; It's pretty simple to refresh:
单击预览屏幕以确保预览窗口具有焦点,然后按 R .刷新时,它应该在右上角显示进度.
Click on the preview screen to make sure preview window has the focus and press R. It should display the progress in the right-top corner while refreshing.
如果由于某种原因它不起作用,请切换到设计"选项卡,然后按 R ,它会立即刷新布局.
If it doesn't work for any reason, switch to design tab and press R, it refreshes the layout instantly.
这篇关于如何在Android Studio 2.2上刷新预览?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!