VectorDrawable rendering issue

前端 未结 4 1107
梦如初夏
梦如初夏 2021-02-19 01:40

I\'m having problems with the VectorDrawables introduced by the support library.

Looking around, I read about similar issues regarding bad scaling or incorrect preview i

4条回答
  •  清酒与你
    2021-02-19 02:16

    Native can't display arcs, but appCompat can. So instead:

    
    

    use

    app:srcCompat="@drawable/mydrawable"
    

    It's that simple o_O.

    (app is xmlns:app="http://schemas.android.com/apk/res-auto")

提交回复
热议问题