データベースクエリの結果でリストビューを設定しようとしています。
とにかく、リストビューから奇妙な XML refrence id エラーが発生しています。誰でもここで問題を見ることができますか? 「@id」参照が問題を引き起こしていると思いますか?
私のXMLは次のとおりです。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/contentList"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
</LinearLayout>
そして私のJavaクラス:
エラーは「R.id.conactList」にあります。
ListView listContent = (ListView)findViewById(R.id.contentList);