アイテムを取得できるようにオブジェクトを作成するにはどうすればよいですか。私は言った例を見つけました
Object item2 = getListView().getAdapter().getItem(holder.position);
オブジェクトを作成しますが、私のクラスでは事情が異なります
ここに私のクラスがあります。ここでどうすればいいですか:
いくつかの機能を実行するにはオブジェクトが必要です。
//if you have an instance of the adapter...
int index = 5; //or whatever index you want
HashMap<String,String> mHashMap = adapter.getItem(index);
//if you are inside of the MyCustomAdapter class...
int index = 5;
HashMap<String,String> mHashMap = getItem(index);