1

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?

2
  • which version of android studio ur using ? Commented Jan 4, 2018 at 14:00
  • I have version 3.0.1 Commented Jan 4, 2018 at 14:17

2 Answers 2

4

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

Sign up to request clarification or add additional context in comments.

3 Comments

What would the refresh button look like? Also I have tried rebuild project and that has not worked.
Ok I have included a picture.
@FranticCelery if this answer worked for you could you mark it as accepted? accepting answers is an important part of how SO works
1

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.

1 Comment

Solved it; If I go to the design tab and press R; the screen refreshes itself. Thanks everyone for the help!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.