Reputation: 25830
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
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
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