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
  • !61

Hard Anchor Point

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/Smurph82/lockslide into master Oct 22, 2013
  • Overview 4
  • Commits 3
  • Pipelines 0
  • Changes 3

Created by: Smurph82

Added a hard anchor point that will allow the sliding panel to stop at the hard anchor point no matter what. Currently the user can slide past the anchor point but it will slide to the hard anchor point when the view is released.

To set the hard anchor point in the MainActivity the user must call "layout.setHardAnchorPoint(true)". This will override any anchor point set with "layout.setAnchorPoint()" The hard point is calculated on line 523 - 524

The sliding panel can be dragged pass the hard anchor point but when the view is released, the sliding panel will smooth slide back to the hard anchor point. I do not think that this can be stopped since technically the panel is sliding to 0. I may be wrong.

I have also added the ability to turn off the cover color that is drawn on top of the main panel when the sliding panel is expaned. This was something that I was asked to do so I left it in.

I also added back some of Android margin and padding calculations that were missing from SlidingPanelLayout.class

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Smurph82/lockslide