// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.gesoftoa.common; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import com.gesoftoa.common.ViewHolder; import java.util.List; public abstract class CommonAdapter extends BaseAdapter { protected LayoutInflater mInflater; protected Context mContext; protected List mDatas; protected final int mItemLayoutId; public CommonAdapter(Context context, List mDatas, int itemLayoutId) { this.mInflater = LayoutInflater.from(context); this.mContext = context; this.mDatas = mDatas; this.mItemLayoutId = itemLayoutId; } public int getCount() { return this.mDatas.size(); } public T getItem(int position) { return this.mDatas.get(position); } public long getItemId(int position) { return (long)position; } public abstract void convert(ViewHolder var1, T var2); public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder = ViewHolder.get(this.mContext, convertView, parent, this.mItemLayoutId, position); System.out.println("position==" + position); this.convert(viewHolder, this.getItem(position)); return viewHolder.getConvertView(); } }