I added to my class MyActivity the following :
private void updateMyList(){
listing=new ArrayList<listing>();
for(int i =0;i<10;i++)
{
Users user=new Users();
user.setListingName("Name" + i);
user.setListingPhone("i" + i);
listing.add(user);
}
MyListAdapter lfa = new MyListAdapter(this, listing);
((ListView)findViewById(R.id.listFeed)).setAdapter(lfa);
}
This code generates 10 list views so I'd like to add a click listener, so when I click on one of the 10 lists, I get a message or sthing.
Thank you for your help.