android:id="@android:id/tabhost" 、android:id="@+id/llRoot" 、android:id="@id/llRoot" 之间的区别

一、

android:id="@android:id/tabhost"   是调用系统内部的ID

和代码中


mTabContent = (FrameLayout) findViewById(com.android.internal.R.id.tabcontent);

是一回事。

二、

android:id="@+id/llRoot" 

就是自己定义一个新的ID。

三、

android:id="@id/llRoot"

使用一个已经存在的ID号引用(跟第一个不同,这里引用的不是系统的)

posted @ 2020-06-04 14:24  旮旯风行  阅读(159)  评论(0编辑  收藏  举报