Using drawable resources

后端 未结 4 1415
清酒与你
清酒与你 2020-11-30 07:13

I have this problem, see the trace stack:

E/AndroidRuntime(2410): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #5:           


        
4条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 07:40

    Minimum SDK: API 23

    drawable/yourDrawable.xml

    In the following code I have a vector as a background as the first item and in the second item centered logo with a custom size above the background.

    
        
    
        
        
    
    

    Note: The cumulative distribution as of today from API 23 is 84.9%. So you might consider an alternative for lower APIs

    GL

    Source

提交回复
热议问题