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
  • Issues
  • #749
Closed
Open
Issue created Jul 29, 2016 by Administrator@rootContributor

Panel not expanding while user is touching the screen.

Created by: mtyy

I want to be 100% sure that panel slides to EXPANDED state no matter what. However when user is in middle of a listview/viewpager scroll and possibly other touch interactions, the panel does not appear.

this is basically what happens:

onPanelStateChanged() called with: previousState = [COLLAPSED], newState = [DRAGGING]
onPanelSlide() called with: slideOffset = [1.0]
onPanelStateChanged() called with: previousState = [DRAGGING], newState = [COLLAPSED]

starts dragging and collapses instantly.

I can work around this with disabling touch events. By overriding dispatchTouchEvent(MotionEvent ev)to return true (without calling super) before setting setPanelState(Panelstate.EXPANDED) and until onPanelStateChanged()newState is EXPANDED.

however this seems super hacky and unreliable. Maybe you guys have more ideas how to tackle it?

Assignee
Assign to
Time tracking