私はAndroidを初めて使用するので、この質問は単純なものかもしれません。
2つのリストを並べてレイアウトを作成しようとしています。1つのリストがある場合は正常に機能しますが、2つ目のリストを追加すると、このエラーが発生します。
私のビューは、ListActivityではなくActivityを拡張します。
しかし、ビルドがこのエラーで失敗する理由を理解できません。
\main.xml:13: error: Error: No resource found that matches the given name (at 'id' with value '@android:id/selected_list').
\Android\android-sdk\tools\ant\build.xml:598: The following error occurred while executing this line:
\Android\android-sdk\tools\ant\build.xml:627: null returned: 1
これは私のmain.xmlがどのように見えるかです:
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/list"
android:layout_weight=".5"/>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/selected_list"
android:layout_weight=".5"/>