나는 자원 ID를 이미 프레임 워크에 정의 된 edittext_container
를 사용하려면,이클립스에서 안드로이드 프레임 워크 리소스를 참조하는 방법?
<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
어떻게 해결?
이 ID는 어쩌면 당신은 그냥 작성해야 http://androidxref.com/4.2.2_r1/xref/frameworks/base/core/res/res/layout/preference_dialog_edittext.xml
당신이 맞습니다. –