Same-named attributes in attrs.xml for custom view

前端 未结 5 905
夕颜
夕颜 2020-12-04 09:50

I\'m writing a few custom views which share some same-named attributes. In their respective section in attrs.xml I\'d lik

5条回答
  •  眼角桃花
    2020-12-04 10:25

    Solution: Simply extract common attributes from both views and add them directly as children of the node:

    
    
        
        
    
        
            
            
            ...
        
    
        
            
            
            ...
        
    
    

提交回复
热议问题