android studio 2.2 布局编辑器刷新按钮 [英] android studio 2.2 layout editor refresh button

查看:60
本文介绍了android studio 2.2 布局编辑器刷新按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮我找到studio 2.2之前的刷新布局按钮来刷新布局更改吗?

can someone help me find the refresh layout button which was there before studio 2.2 to refresh the layout changes?

找遍了都没有找到.问题是有时候drawables没有刷新并反映在预览窗口中.

Have searched every where but cannot find it.The problem is sometimes drawables are not refreshed and reflected in the preview window.

推荐答案

我认为这是一个小错误,但我找到了解决问题的 hack 解决方案.

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 布局编辑器刷新按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆