如何在矢量路径上添加阴影?

时间:2018-07-26 09:31:01

标签: android vector path drawable

如何为矢量图像添加模糊阴影? 我使用路径

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="1580dp"
android:height="3340dp"
android:viewportWidth="1580"
android:viewportHeight="3340">

<path
    android:name="@string/frame_frame"
    android:fillColor="#424242"
    android:pathData="M1450,50H130A100.11,100.11,0,0,0,30,150V3190a100.11,100.11,0,0,0,100,100H1450a100.11,100.11,0,0,0,100-100V150A100.11,100.11,0,0,0,1450,50Zm60,3040a60,60,0,0,1-60,60H130a60,60,0,0,1-60-60V250a60,60,0,0,1,60-60H1450a60,60,0,0,1,60,60Z" />

I have to put the shadow on this model

1 个答案:

答案 0 :(得分:0)

您不能为矢量添加阴影,您需要在使用此矢量文件的位置提供specif视图的高程属性: