@Override public View getView(int position, View convertView, ViewGroup parent) { int selected = neither; // TODO Auto-generated method stub LinearLayout ll = null; if (convertView != null) { ll = (LinearLayout) convertView; } else { ll = (LinearLayout) LayoutInflater.from(context).inflate(resID, parent, false); } AppInfo appInfo = getItem(position); if (context.currentSelectedGridView == ll) { selected = currentSelected; } else if (context.lastSelectedGridView == ll) { selected = lastSelected; } appInfo.SetMeOnTextView(ll, selected); return ll; }