问题描述
有人可以帮我找到Studio 2.2之前的刷新布局按钮以刷新布局更改吗?
can someone help me find the refresh layout button which was there before studio 2.2 to refresh the layout changes?
已在所有位置进行了搜索,但找不到.问题是有时可绘制对象没有刷新并没有反映在预览窗口中.
Have searched every where but cannot find it.The problem is sometimes drawables are not refreshed and reflected in the preview window.
推荐答案
我认为这是一个小错误,但是我找到了一种可解决该问题的黑客解决方案.
I think it is a small bug, but I find a hack solution to resolve the problem.
您可以将资源ID更改为错误的名称.例如,您有一个名为ic_launcher
的资源.输入ic_launcher1
时,可以找到如下界面:
You can change a resource id to a wrong name. For example, you have a resource named ic_launcher
. When you input ic_launcher1
, you can find the interface like this:
下一步,单击刷新链接(有时会显示清除缓存").
Next, click the refresh link (sometimes, it says 'clear cache').
我尝试更改方向,但是当我替换现有的图像文件时,该方法不起作用.
I tried changing the orientation, but it does not work when I replace an existing image file.
这篇关于Android Studio 2.2布局编辑器刷新按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!