Use declare styleable to set custom component input type

前端 未结 4 569
耶瑟儿~
耶瑟儿~ 2020-12-14 06:18

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 c

4条回答
  •  北海茫月
    2020-12-14 06:55

    use this in your attr.xml for the suggestions . the use of flags give the suggestions in xml while using edittext. the custom:inputType="text" and it will suggest you the addition types. to add more flags use this link Visit https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/attrs.xml

    
    
    
        
        
    
            
            
            
            
            
        
      
    
    
    

提交回复
热议问题