here is my problem:
I created a custom adapter for my ListView, and I get the information from the list that I pass to this adapter to let it execute my ListView. He is doing everything right. Now I would like to implement OnItemClickListener and get data from it. But in this list I have 4 TextViews ...
How to get data ?
I already know how to get the identifier and position, since I show them in Toast.
Many thanks for your help!
Here is a custom adapter:
public class NextRdvAdapter extends ArrayAdapter<NextRdv> { private List<NextRdv> listNextRdv = new ArrayList<NextRdv>(); private Context context; public NextRdvAdapter(List<NextRdv> nextRdvList, Context ctx) { super(ctx, R.layout.list_next_rdv, nextRdvList); this.listNextRdv = nextRdvList; this.context = ctx; } public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) {
Here is my snippet that owns a ListView:
public class HomeFragment extends Fragment implements OnItemClickListener{ float density;
source share