zoukankan      html  css  js  c++  java
  • 自定义圆的半径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>

  • 相关阅读:
    JSTL和EL
    JSP
    Servlet基础知识
    JSON基础知识
    jQuery基础知识
    ajax基础知识
    索引实战
    反射
    设计模式
    JVM的异常处理
  • 原文地址:https://www.cnblogs.com/1995yu/p/5375071.html
Copyright © 2011-2022 走看看