Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.kubatatami.judonetworking.observers;
 
 import  android.content.Context;
 import  android.view.View;
 import  android.view.ViewGroup;
 import  android.widget.ArrayAdapter;
 
 import java.util.List;
Created with IntelliJ IDEA. User: jbogacki Date: 25.10.2013 Time: 10:15 To change this template use File | Settings | File Templates.
public class ObserverAdapter<T> extends ArrayAdapter<T> {
    protected int resource;
    public ObserverAdapter(Context contextint resource) {
        super(contextresource);
        this. =resource;
         = new ObserverAdapterHelper(context);
    }
    public ObserverAdapter(Context contextint resource, T[] objects) {
        super(contextresourceobjects);
        this. = resource;
         = new ObserverAdapterHelper(context);
    }
    public ObserverAdapter(Context contextint resourceList<T> objects) {
        super(contextresourceobjects);
        this. = resource;
         = new ObserverAdapterHelper(context);
    }
    public ObserverAdapter(Context contextint resourceMap<?,T> objects) {
        super(contextresourcenew ArrayList<T>(objects.values()));
        this. = resource;
         = new ObserverAdapterHelper(context);
    }
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return .getView(,getItem(position),convertView,parent);
    }
    public View getView(int position, View convertView, ViewGroup parentClass<?> holderClass) {
        return .getView(,getItem(position),convertView,parent,holderClass);
    }
New to GrepCode? Check out our FAQ X