 <p>Just put name of the parent class at the end of new, for example</p> <p><code>public class YellowTextView extends TextView ...</code></p> <p>And let IDE do other work like Content Assist, etc.</p>