首先设置
setOverScrollMode(OVER_SCROLL_NEVER); // );//去掉ScrollView 滑动到底部或顶部 继续滑动时会出现渐变的蓝色颜色快
init(... ...
if (null != attrs) { TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.PullScrollView); if (ta != null) { mHeaderHeight = (int) ta.getDimension(R.styleable.PullScrollView_headerHeight, -1); // 头高度. mHeaderVisibleHeight = (int) ta.getDimension(R.styleable .PullScrollView_headerVisibleHeight, -1); // ta.recycle(); // } }
ff
时间: 2024-10-01 21:32:56