@Override
    public void onClick(View v) {
        if (null != v && v instanceof ImageView) {
            if (mOnClickItemListener != null) {
                int position = -1;
                Address address = (Address) v.getTag();
                if (mAllAddressList != null && address != null) {
                    position = mAllAddressList.indexOf(address);
                }
                mOnClickItemListener.onClickItem(v, position);
            }
        }
    }
@function viewpageradapter
@auther: Created by yinglan
@time: 16/3/16
app/src/main/java/com/yinglan/scrolllayout/demo/viewpager/MainPagerAdapter.java