@@ -0,0 +1,1008 @@
+ public static %3CT extends View%3E T getAdapterView(View convertView, int id) %7B%0A        SparseArray%3CView%3E viewHolder = (SparseArray%3CView%3E) convertView.getTag();%0A        if (viewHolder == null) %7B%0A            viewHolder = new SparseArray%3CView%3E();%0A            convertView.setTag(viewHolder);%0A        %7D%0A        View childView = viewHolder.get(id);%0A        if (childView == null) %7B%0A            childView = convertView.findViewById(id);%0A            viewHolder.put(id, childView);%0A        %7D%0A        return (T) childView;%0A    %7D %0A    @Override%0A    public View getView(int position, View convertView, ViewGroup parent) %7B%0A        if (convertView == null) %7B%0A            convertView = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_feed_item, parent, false);%0A        %7D%0A%0A        ImageView thumnailView = getAdapterView(convertView, R.id.video_thumbnail);%0A        ImageView avatarView =  getAdapterView(convertView, R.id.user_avatar);%0A        ImageView appIconView = getAdapterView(convertView, R.id.app_icon);%0A%7D

添加viewholder的一种通用写法，将之隐于无形