private ImageView getImageView(final int position) {
        if (position < mImageViewList.size()) {
            return mImageViewList.get(position);

        } else {
            if (mAdapter != null) {
                ImageView imageView = mAdapter.generateImageView(getContext());
                mImageViewList.add(imageView);
                return imageView;
            } else {
                Log.e("9GridImageView", "你必须为LQRNineGridImageView设置LQRNineGridImageViewAdapter");
                return null;
            }
        }
    }
private ImageView getImageView ( final int position ) { if ( position < mImageViewList . size ( ) ) { return mImageViewList . get ( position ) ; } else { if ( mAdapter != null ) { ImageView imageView = mAdapter . generateImageView ( getContext ( ) ) ; mImageViewList . add ( imageView ) ; return imageView ; } else { Log . e ( "9GridImageView" , "你必须为LQRNineGridImageView设置LQRNineGridImageViewAdapter" ) ; return null ; } } }
获得 ImageView
保证了ImageView的重用

@param position 位置