Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 418
Phil Avatar asked Nov 27 '25 00:11

Phil


1 Answers

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.

like image 182
slesar Avatar answered Nov 28 '25 16:11

slesar