<How can I extend builtin classes in kotlin/androi...
# stackoverflow
u
How can I extend builtin classes in kotlin/android to add my custom attributes? I want to add custom attributes by extending a class and then I want to access these properties at front end... for example if I extend my TextView class and add "userName" : "abc" as a custom attribute, then I should get this custom attribute when I create a new TextView control. Moreover I want to automatically generate xml code related to that control.