自定义ScrollView 支持添加头部并且对头部ImageView支持放大缩小,上滑头部缩小,下滑头部显示放大
使用方式:
1 scrollView = (MyScrollView) findViewById(R.id.scrollview); 2 headerView = findViewById(R.id.lay_header); 3 imgView = (ImageView) findViewById(R.id.civ_avatar); 4 scrollView.setHeaderView(headerView, imgView);
github地址:https://github.com/oooohuhu/ScrollaAddHeadView
源码下载:https://download.csdn.net/download/sinat_32804317/10579612