我想使用一個資源ID已在框架內已經定義edittext_container
,如何在eclipse中引用android框架資源?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@*android:id/edittext_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dip"
android:orientation="vertical">
<TextView android:id="@+android:id/message"
style="?android:attr/textAppearanceSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondary" />
</LinearLayout>
但Eclipse構建錯誤:
Illegal resource reference: @*android resources are private and not always present
如何解決?
你說得對.. –