Re-using Android Custom enum xml attributes

后端 未结 1 890
伪装坚强ぢ
伪装坚强ぢ 2021-02-01 04:15

I\'m defining a custom attribute in XML that is an enum.It looks something like this:


    

        
1条回答
  •  天命终不由人
    2021-02-01 04:48

    Just define the attribute outside of your control:

    
        
        
        
        
        
        
        
        
         
        
        
    
    

    Then just reuse that for all of your controls:

    
        
    
    
    
        
    
    

    0 讨论(0)
提交回复
热议问题