07-21-2011 11:09 AM
The PaneManager classes look pretty cool and just what I'm after, but the demo left me with a couple problems.
First, when creating the header for the PaneManager, it makes calls to setLeftArrow and setRightArrow. These arrows never appear in the app whether you choose tabs or scrollable panes, so I'm wondering what they do. The methods are defined in the TitleView base class, and not overridden in the HorizontalScrollableTitleView class. I'd guess they are ignored when using the scrollable titleview.
Secondly, the scrollable panes seem to be broken when there are only 2 panes. I've reproduced this problem in the simulator by commenting out the last call to addPane in the demo. If you scroll around to show the panes, sooner or later you will see on that has blank body. Moving the pane to one side or another and letting go (so the the pane snaps back into position) can make the body reappear.
Is there any known workaround for this? I don't know how many panes I will be using (I'm showing one per item) and its probable that there will be only two.
07-27-2011 10:26 AM
I've confirmed that this is a bug on my Torch. I've logged it as JAVAAPI-2015.. I'd very much like to know if anyone else has encountered the problem and come up with a work-around.
in a nutshell, start with the PaneManagerDemo app and comment out some code to only add 2 panes instead of what the demo uses, which is 3. When there are only 2 panes and using the scrollable pane controller, the headers don't scroll in synch with the pane bodies. It doesn't crash, but it is confusing and looks ugly.
11-22-2011 10:45 AM
Hope this helps!
set enablelooping to false:
// Instantiate the model for the pane manager and enable looping
PaneManagerModel model = new PaneManagerModel();
this will prevent HorizontalScrollableTitleView from displaying blank titles.
I'm yet to find out how to show those arrows.