Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Refactor > Extract > Style Disabled

I am trying to extract style in android studio 0.8.9 using the refactor option. But it seems to be disabled for some reason. I have tried cleaning and rebuilding the project just in case and even restarting Android Studio, but nothing seems to enable the extract style option.

Do let me know if anybody else is facing the same problem or is there a way to solve this ? Screenshot image: Screenshot

like image 843
Shashank Avatar asked Oct 24 '14 22:10

Shashank


1 Answers

I had the same problem. Extracting styles is different in Android Studio:

You don't need to select text and choose Refactor->Extract->Style, just choose the menu option With no text selected.

So, just click anywhere inside the ImageView element (Do not select any text). The refactor option should become available.

like image 197
mtnkodiak Avatar answered Oct 23 '22 18:10

mtnkodiak