首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

以次两种ID赋值方式有什么不一样

2013-04-26 
以下两种ID赋值方式有什么不一样TabHost xmlns:androidhttp://schemas.android.com/apk/res/androidan

以下两种ID赋值方式有什么不一样
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"  
    android:id="@+id/mytabhost" android:layout_width="fill_parent"  
    android:layout_height="fill_parent">

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"  
    android:id="@android:id/tabhost" android:layout_width="fill_parent"  
    android:layout_height="fill_parent">

android:id="@+id/mytabhost"

android:id="@android:id/tabhost"
有什么不一样啊?
[解决办法]
="@+id ==》定义 id
="@android:id 引用已定义 id

热点排行