How to refresh resources in Android studio without restarting?

I'm resizing and changing the background picture. However, layout preview will refresh the image every time I have to restart Android studio

Not working:

>Change API level > change preview direction > change theme > sync item

What else can I do?

Windows 10 64 bit on AMD a8-6410 with AMD radeon R5 graphics and 11 GB ram on Android studio 2.2.2

@R_ 502_ 1911@:

If you are using Android studio before 2.2: just click the refresh button on the layout editor menu bar

in addition to:

Go to the layout you are working on. Then, change any resources to incorrect names

For example, if you have a button with this attribute:

android:background="@drawable/button"

Replace it with any random error resource:

android:background="@drawable/thisIsSomethingVeryRandomAndDoesntExist"

Then you will get information similar to the following:

Click refresh (sometimes clear cache) and undo the changes you made to the attributes. Look!

Sometimes you can even change direction

Source

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>