リストを含むアプリを自分で作成しました。これまで、を使用しSimpleAdapterてリストにデータを入力していましたが、に移動することにしましたArrayAdapter。ArrayAdapter問題は、同じ方法でデータを入力する方法がわからないことです。これが私の使用方法SimpleAdapterです:
adapter=new SimpleAdapter(this, listItems, R.layout.custom_row_view, new String[]{"name", "current", "reset"}, new int[] {R.id.text1, R.id.text2, R.id.text3});
私のlistItems変数は、実際には次のように設定されています。
static final ArrayList<HashMap<String,String>> listItems = new ArrayList<HashMap<String,String>>();
さて、同じ引数でコンストラクターを使おうとするとArrayAdapter、エラーが発生します。これはどのように行うことができますか?