如何在ImageView上设置外部发光效果?

时间:2013-03-23 06:32:28

标签: android android-imageview glow

我试过这个。但它不适用于ImageView。但是这段代码没有在Image上设置任何外部光晕。

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

指导我该怎么做。

1 个答案:

答案 0 :(得分:1)

参考表格here

在android sdk中使用ninepatch工具。

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

我希望这对你有用。

相关问题