IT月光

导航

自定义圆的半径layout

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
   
    xmlns:myattr="myview"//定义的空间名
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" >
 <!-- xmlns:android="http://schemas.android.com/apk/res/com.baidu.myattrs" -->//主类的全包名
    <com.baidu.myviews.MyView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        myattr:radius="50"
         />

</RelativeLayout>

posted on 2016-04-10 19:34  IT月光  阅读(216)  评论(0编辑  收藏  举报