How to pass custom component parameters in java and xml
(Full disclosure: This question is an offshoot of Creating custom view) You can create constructors beyond the three standard ones inherited from View that add the attributes you want… MyComponent(Context context, String foo) { super(context); // Do something with foo } …but I don’t recommend it. It’s better to follow the same convention as other … Read more