user3496654
user3496654

Reputation: 101

suggestion in android studio

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:

enter image description here

Upvotes: 0

Views: 1137

Answers (3)

Saveen
Saveen

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.

enter image description here

Upvotes: 1

koto
koto

Reputation: 740

Alt+Enter and then simply Enter.

Upvotes: 1

curiousMind
curiousMind

Reputation: 2812

use Ctrl + space for suggestion and when it shows error then you want to check error then try Alt + enter

Upvotes: 2

Related Questions