How to set outer glow effect on ImageView?

独自空忆成欢 提交于 2019-12-07 09:28:14

问题


I have tried this. but it is not working this on ImageView. but this code is not setting any outer glow on Image.

    android:shadowColor="#7ccb16"
    android:shadowDx="0"
    android:shadowDy="0"
    android:shadowRadius="3"

guide me how do I do this.


回答1:


Refered form here

using ninepatch tool in android sdk.

<ImageView
        android:id="@+id/image_test"
        android:background="@drawable/drop_shadow"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingLeft="6px"
        android:paddingTop="4px"
        android:paddingRight="8px"
        android:paddingBottom="9px"
        android:src="@drawable/pic1"
        />

I hope this will be useful to you.



来源:https://stackoverflow.com/questions/15584067/how-to-set-outer-glow-effect-on-imageview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!