How to BAKE rounded corners
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="1dp" android:color="#0073bc" /> <padding android:left="7dp" android:top="7dp" android:right="7dp" android:bottom="7dp" /> <corners android:radius="5dp" /> <solid android:color="#ffffff"/> </shape>
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> <ImageView android:src="@drawable/word1_word2" android:layout_height="300dip" android:layout_width="300dip" android:id="@+id/imageView1"></ImageView> </LinearLayout>
sample code:
Tutorial_image_rounded_corners