Use declare styleable to set custom component input type
问题 I have a CompositeComponent (EditText+ImageButton) When clicking on button the edittext content will be cleared. It is working fine. My problem is setting attributes to my component. I am using declare-styleable to set attributes to my component. I am successful at setting minLines, maxLines and textColor. How can I set inputtype to my component via xml. my attributes.xml <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="CET"> <attr name="MaxLines" format="integer"/>