Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How can we program to collapse/expand the Navigation Pane in SpitPane?

    When u pressed on the resize bar, the navigation pane collapse and expand. How can we program to do the same thing?

    Thanks

    #2
    Call hide() on the member you want to hide and the containing layout will automatically adjust.

    Comment


      #3
      When I did splitPane.getNavigationBar().hide(); AND splitPane.getNavigationPane.hide(), both panes disappeared but the container layout is not adjusted. The resize bar is not collapse at all. What else should I tried ?

      Thanks

      Comment


        #4
        I was able to make it work by setting SplitPane .setNavigationPaneWidth(1); before SplitPane.draw(); And then when I do the components hide then it will collapse

        Comment


          #5
          One possible solution for hiding the navigation pane is the code:
          Code:
          splitPane.hideMember(splitPane.getMember(0));
          but note that it only works in desktop mode. On handsets, the navigation pane should be auto-hidden when you navigate to another pane, so if that's what you're trying to achieve, it's already built into our framework.

          If you're aiming for something else, you need to describe for us from the end user’s perspective and then we can recommend an approach.

          Comment

          Working...
          X