关于自定义view使用,命名空间问题,记录而已

来源:互联网 发布:vb.net 编辑:程序博客网 时间:2024/05/18 01:12
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    <!-- 下面 -->    xmlns:lynn="http://schemas.android.com/apk/res/com.lynn.popoutmenu"    android:layout_width="match_parent"    android:layout_height="match_parent"    tools:context="com.lynn.popoutmenu.MainActivity" ></RelativeLayout>

即:

(自定义命名空间xmlns:lynn="http://schemas.android.com/apk/res/com.lynn.popoutmenu")  =  (http://schemas.android.com/apk/res/) + (清单文件里的包名com.lynn.popoutmenu
0 0
原创粉丝点击