How to set an xml view to dynamically added android widgets?

141 Views Asked by At

I have created custom buttons and edittexts, I require them in many activities . I want them all to look the same having a particular design . Normally we set layouts to these widgets by findViewById() but in this case i am adding those edittexts dynamically. I want to know if there is a way i can set layout to my edittext either in the class itself or after it's instantiation ?

0

There are 0 best solutions below