Problem with list activity

Posted by vikram deshpande on Stack Overflow See other posts from Stack Overflow or by vikram deshpande
Published on 2010-01-14T16:07:16Z Indexed on 2010/03/30 19:03 UTC
Read the original article Hit count: 379

Filed under:
|
|

I have implmented pagination and it display 5 records per page. Now suppose I am on page 3 and click 3'rd element then 3'rd element of page-1 is selected.

I am not able to figure out problem as I always create new list object while setting data.

I used below code

temp = new ArrayList();
this.someListAdapter = new SomeListAdapter(this, R.layout.row_facet,temp);
setListAdapter(this.someListAdapter );

Below is signature of SomeListAdapter class.

public class SomeListAdapter extends ArrayAdapter<VoNeighborhood> {
}

Please help....

© Stack Overflow or respective owner

Related posts about android

Related posts about list