я компилирую это,В чем разница «@ + android: id» и «@ + id»?
<FrameLayout
android:id="@+android:id/realtabcontent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
ошибки сталкиваются с:
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
если я изменяю
<FrameLayout
android:id="@+id/realtabcontent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
успешно компилировать.
В чем отличие android: id = "@ + android: id/realtabcontent" и android: id = "@ + id/realtabcontent"?
@Blackbelt - '@ + android: id' и' @ + id' - это то же самое? – Apurva
Возможный дубликат [в чем разница betwenn @ id/и @ + id/in android?] (Http://stackoverflow.com/questions/5731414/what-is-the-difference-betwenn-id-and-id -in-android) – Kiran
http://stackoverflow.com/questions/3264235/what-is-different-between-id-androidlist-and-id-androidlist/29207110#29207110 –