如何设置ImageView的外发光效果呢? [英] How to set outer glow effect on ImageView?

查看:1688
本文介绍了如何设置ImageView的外发光效果呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经试过这一点。但它不上的ImageView工作此。但这code未设置上图像的任何外发光。

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.

推荐答案

所指向的形式这里

在Android SDK中使用ninepatch工具。

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"
        />

或者你可以尝试 PDF还

我希望这将是对你有用。

I hope this will be useful to you.

这篇关于如何设置ImageView的外发光效果呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆