Code example for List

Methods: indexOf

0
        return list.get(position);
    } 
 
    @Implementation 
    public int getPosition(T item) {
        return list.indexOf(item);
    } 
 
    @Implementation 
    public View getView(int position, View convertView, ViewGroup parent) {
        T item = list.get(position);
        View view = getResourceLoader().inflateView(context, resource, parent);
 
        if (convertView == null) {
            view = getResourceLoader().inflateView(context,resource, parent);
        } else { 
            view = convertView;
        } 
 
        TextView text;
        if (textViewResourceId == 0) {