views:

525

answers:

2

Hi Folks,

I would need to set the Border and handle the color for an ImageView in AndroidHow?

Thanks.

A: 

I think you can find out from another stackoverflow question ImageView border

skyfoot
+4  A: 

I set the below xml to the background of the Image View as Drawable. It works.

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
<solid android:color="#FFFFFF" />
<stroke android:width="1dp" android:color="#000000" />
<padding android:left="1dp" android:top="1dp" android:right="1dp"
    android:bottom="1dp" />
</shape>
Praveen Chandrasekaran