Reputation: 101
in eclipse when I write something wrong it gives me some suggestion. but in android studio I cant see this option. for example in eclipse when I write this:
ImageView image= findViewById(R.id.imageView);
I gives me suggestion for casting to imagview but in android studio I don't see such an option. should I set or change something to make it works?
when I place pointer above it:
Upvotes: 0
Views: 1137
Reputation: 4220
In studio you can do very simple way go to widget that you declare.Automatically one popup will appear when you click on declaration line.You can directly cast that widget. See in below image.
thankyou Hope this will help you.
Upvotes: 1
Reputation: 2812
use Ctrl + space for suggestion and when it shows error then you want to check error then try Alt + enter
Upvotes: 2