Reputation: 11
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
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)
Upvotes: 4
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