读书人

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

发布时间: 2013-04-26 16:27:53 作者: rapoo

以下两种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

读书人网 >Android

热点推荐