Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A AndroidSlidingUpPanel
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 267
    • Issues 267
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Umano: News Read To You
  • AndroidSlidingUpPanel
  • Merge requests
  • !97

Fixed parents overriding touch intercepts (SlidingUpPanel inside DrawerLayout)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Administrator requested to merge github/fork/ribot/fix_parent_intercept into master Jan 17, 2014
  • Overview 7
  • Commits 3
  • Pipelines 0
  • Changes 2

Created by: matt-oakes

Hi,

I was having a problem when I was using SlidingUpPanelLayout inside a DrawerLayout. If you started dragging the panel up and then moved your finger slightly either left or right the DrawerPanel would take over and start moving the drawer left and right.

The solution was to call requestDisallowInterceptTouchEvent inside onInterceptTouchEvent with the value we are going to return. Therefore we will still allow the drawer to intercept if we don't want it, but we will effectively lock the drawer if we've decided the user has started dragging the SlidingUpPanel.

Let me know if there are any changes which need to be made.

Matt

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ribot/fix_parent_intercept