FranticCelery
FranticCelery

Reputation: 11

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

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.

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?

Upvotes: 1

Views: 2346

Answers (2)

Sharon P Raju
Sharon P Raju

Reputation: 76

You can try Rebuild the Project (In build menu)

OR

There is a Refresh option in design view. Click on Force Refresh Layout (This may vary as per Android Studio versions)

enter image description here

Upvotes: 4

iamnaran
iamnaran

Reputation: 1963

Just click Preview Button twice it will refresh the current layout. However, Android Studio automatically update all drawable files and the current xml design in preview.

Try rebuild/clean your project also Invalidate/Caches restart once.

Upvotes: 1

Related Questions