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
  • #415
Closed
Open
Issue created Mar 24, 2015 by Administrator@rootContributor

setPanelState does not work until onMeasure is called

Created by: thedumbtechguy

I used to hide the panel based on some checks in onStart of my activity.

However, I just update and unfortunately, this doesn't work anymore. After about a couple of hours debugging (I thought it was my code I swear), I realized setPanelState won't work if the mSlideableView is null.

Unfortunately, it is until onMeasure is called where it is set using this.mSlideableView = this.getChildAt(1);

This wouldn't be an issue, but there is no proper way of detecting onMeasure without subclassing. onAttachedToWindow looks promising, but it says it may be called before or after onMeasure.

I can't also find a suitable way to detect when the activity is fully drawn.

Assignee
Assign to
Time tracking