I compile this,
<FrameLayout
android:id="@+android:id/realtabcontent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
encounter errors:
Description Resource Path Location Type
error: creating resource for external package android: id/realtabcontent. fragment_tabs_fragment.xml /ApiDemos/res/layout line 43 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'id' with value '@+android:id/realtabcontent'). fragment_tabs_fragment.xml /ApiDemos/res/layout line 43 Android AAPT Problem
note: did you mean to use @+id instead of @+android:id? fragment_tabs_fragment.xml /ApiDemos/res/layout line 43 Android AAPT Problem
Unparsed aapt error(s)! Check the console for output. ApiDemos Unknown Android Packaging Problem
if I change to
<FrameLayout
android:id="@+id/realtabcontent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
compile successfully.
What's difference of android:id="@+android:id/realtabcontent" and android:id="@+id/realtabcontent"?