Search code examples
javaandroidintellij-ideaandroid-studiocode-completion

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.)


Solution

  • 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.