Phil
Phil

Reputation: 36289

View subclass naming conventions - Android

I am developing a library of custom Android Views that extend the abilities of existing Views. I have noticed that some examples of this will name their class by appending Ex on the end of the class name, such as AsyncTaskEx, TextViewEx, etc. Is this a convention that [Android] developers often follow, or is there really no pattern other than personal preference?

Upvotes: 3

Views: 171

Answers (1)

slesar
slesar

Reputation: 161

Just put name of the parent class at the end of new, for example

public class YellowTextView extends TextView ...

And let IDE do other work like Content Assist, etc.

Upvotes: 1

Related Questions