0

After updated to Android Studio 2.2, Refresh layout option not available. How to get this button?

Layout Preview

Naveen Kumar M
  • 7,497
  • 7
  • 60
  • 74

1 Answers1

1

After lot of search google may remove the refresh button in Android Studio 2.2

refer this - https://developer.android.com/studio/write/layout-editor.html

Incase your layout not get refreshed try the following solutions

Solution1 works for me when I use PercentRelativeLayout.. When first time my layout not refreshed.. after rebuild layout refreshed for me.

Solution 1:

Please rebuild your project (goto Build -> Rebuild project)

or

Solution 2:

Note: This is not proper answer.. Its just trick

Incase if your layout not get auto-refreshed try the following steps

just set the background to anyview for ex:

 android:background="@mipmap/ic_launcher"

and then rename drawable name with wrong value.. and save again.. you will get error..

after remove this line your layout may refreshed..

enter image description here

Ranjithkumar
  • 16,071
  • 12
  • 120
  • 159