Android custom widget styles: how to put them into a namespace?

前端 未结 4 1418
情话喂你
情话喂你 2021-01-01 17:17

In the ApiDemos, there is a view example called Gallery1 which declares a custom style in attrs.xml, as such:


            


        
4条回答
  •  攒了一身酷
    2021-01-01 17:53

    In case someone is still interested, I had the same problem and solved it by adding a 'format' attribute (it seems it doesn't take 'string' as the default):

    
    

提交回复
热议问题