addView(linearLayout);
}
+
+ @Override
+ public boolean onInterceptTouchEvent(MotionEvent ev) {
+ if (canScrollVertically(1) || canScrollVertically(-1)) {
+ return super.onInterceptTouchEvent(ev);
+ }
+ return false;
+ }
+
+ @Override
+ public boolean onTouchEvent(MotionEvent ev) {
+ if (canScrollVertically(1) || canScrollVertically(-1)) {
+ return super.onTouchEvent(ev);
+ }
+ return false;
+ }
+
public boolean shouldIntercept(MotionEvent ev) {
- getHitRect(mHitRect);
- if (!mHitRect.contains((int) ev.getX(), (int) ev.getY())) {
- // Do not intercept touches that are not within this view's bounds.
+ if (ev.getY() > (getBottom() - mFooterHeight)) {
+ // Do not intercept touches that are below the divider between QS and the footer.
return false;
}
if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) {