From what I can tell, Eclipse only supports making “skeleton-code” for very few class extensions in Android (such as Activity). If I want to extend TextView, Fragment, etc. I have to start completely from scratch and provide my own skeleton code.
Is that true, or am I missing something simple in Eclipse that creates skeleton code for various class extensions?
If by skeleton code you mean overriding the methods in the super class, then try the following:
In the package explorer, right click on the class, go to the
Sourcetab and selectOverride/Implement Methods.... This will give a list of the methods you can override and implement.Alternatively, go to a new line in the class editor outside of an existing method and press
control + spaceto bring up a list of methods you can override. This is faster when overriding only one or two methods.