ページネーションを実装し、ページごとに 5 つのレコードを表示します。ここで、3 ページ目にいて 3 番目の要素をクリックすると、page-1 の 3 番目の要素が選択されたとします。
データの設定中に常に新しいリストオブジェクトを作成するため、問題を把握できません。
以下のコードを使用しました
temp = new ArrayList();
this.someListAdapter = new SomeListAdapter(this, R.layout.row_facet,temp);
setListAdapter(this.someListAdapter );
以下は SomeListAdapter クラスのシグネチャです。
public class SomeListAdapter extends ArrayAdapter<VoNeighborhood> {
}
助けてください....