首页 > 其他 > 详细

自定义圆的半径layout

时间:2016-04-10 21:11:26      阅读:118      评论:0      收藏:0      [点我收藏+]

<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>

自定义圆的半径layout

原文:http://www.cnblogs.com/1995yu/p/5375071.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!