Don Rhummy
Don Rhummy

Reputation: 25830

In Android Studio, how get popup of all methods a class can implement (and add them)?

If I've created a class that implements another one (e.g. class MyFragment extends Fragment), when I start typing in the class, it is not giving me the code completion for parent methods. How do I get this to show up or get a popup that I can choose them from?

For example, in MyFragment, typing public void onCre does not show anything. (But after typing the entire method, it compiles fine.)

Upvotes: 1

Views: 1602

Answers (2)

pt2121
pt2121

Reputation: 11870

I am not sure I understand you correctly but can you try Ctrl + O or Alt + Insert?

Please also see "Add unimplemented methods" feature in the Android Studio.

Upvotes: 5

Kevin Coppock
Kevin Coppock

Reputation: 134664

It should be giving you code completion for those methods. Have you tried doing a "Make Project" to ensure everything's synced with your gradle script?

Alternatively, you can go do "Code > Override..." to bring up a list of available methods to override.

Upvotes: 0

Related Questions