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
  • #995
Closed
Open
Issue created Sep 09, 2022 by boomrules@boomrules

never recalculate the layout height after replace it programmatically

I add the second child in sliding panel with:

<include layout="@layout/search_location" />

But at a moment I need to replace this layout with another. Using next code:

FrameLayout mainLayout = findViewById(R.id.slide);
 View layout = View.inflate(this,R.layout.menu_settings,null);
 mainLayout.removeAllViews();
 mainLayout.addView(layout);

The new layout is shortest as the first one.

The problem is that when show the slide panel it will jump to the same point as for old layout. if hide it and reveal again he is displayed ok now.

Here is slider with first layout:

http://ghiduldrumetului.ro/1.jpg

And here with replaced one:

http://ghiduldrumetului.ro/2.jpg

What need to do that slidepanel to calculate well the height after replacement of second child layout?

Assignee
Assign to
Time tracking