posted 13 years ago
Hai Frnds,
I serached in net, plenty of the following xml code only,
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<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>
But i want to know to how to set it for am image in a ImageView
my sample code is
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="340dip">
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"android:background="@color/black" android:stretchColumns="1" android:layout_margin="10dip">
<TableRow>
<ImageView android:id="@+id/eve_img" android:layout_width="60dip" android:layout_height="60dip" />
</TableRow>
</TableLayout>
</LinearLayout>