Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: How to 'Refresh' after adding file?

I am trying to add a layout to an Android project:

Right clicked on res folder New | Directory. The directory was created however not shown under app/res. Maybe because empty dirs are hidden by default? Went to Windows explorer and added a file to the newly created directory (hidden in Android Studio). Back in the Studio, how can I 'refresh' the project structure to show the newly created directory and the file under it?

Essentially my question is, what is the alternative to Eclipse' Refresh menu option?

like image 778
kmansoor Avatar asked Feb 06 '15 21:02

kmansoor


People also ask

How do you refresh an activity in Java?

In some situations, we need to recall activity again from onCreate(). This example demonstrates how to reload activity in Android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.


1 Answers

If I find that Android Studio is out of synch with the file system I use File->Synchronize. Or equivalently, Ctrl+Alt+Y or the little circle with arrows menu button.

like image 174
Stephen H Sentoff Avatar answered Sep 28 '22 02:09

Stephen H Sentoff