Android中给图片加圆角效果
<!-- profile image --><FrameLayout android:layout_width="48dp" android:layout_height="48dp"> <ImageView android:id="@+id/profile_image" android:layout_width="fill_parent" android:layout_height="fill_parent" /> <!-- image corner --> <ImageView android:background="@drawable/images_border_radius" android:layout_width="fill_parent" android:layout_height="fill_parent" /></FrameLayout>
其中第一个ImageView为目标图片, 而第一个ImageView则为遮盖层.