<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="#666666"/> <size android:width="120dp" android:height="120dp"/> </shape>
保存为xml~放在drawable下面,然后这样用:
<ImageView android:id="@+id/personal_icon" android:layout_width="63dip" android:layout_height="63dip" android:padding="3dip" android:layout_below="@id/title_area" android:layout_marginTop="-35dp" android:contentDescription="@null" android:src="@drawable/psy_default_circlie" android:background="@drawable/rounded_menu_out"/> <!--android:background="@drawable/rounded_menu_out"就是那个xml文件的名字哦~--/>