Custom attributes in styles.xml

后端 未结 6 936
野的像风
野的像风 2020-11-27 12:38

I have created a custom widget, and I\'m declaring it in layout.xml. I have also added some custom attributes in attr.xml. However, when trying to declare these attributes

6条回答
  •  广开言路
    2020-11-27 13:11

    values/styles.xml

    
    

    values/attrs.xml

    
        
        
    
    

    values/colors.xml

    
        #f00
    
    

    values/dimens.xml

    
        100dp
    
    

    Using

    DEMO

提交回复
热议问题