I am trying to restore the precise item positions for a StretchableLayoutManager. This does not seem to be possible. The only way to set item positions recalculates all other positions, which makes it a moving target. Any idea ?
I figured it out. It was my problem in the end.
The trick is, that the layOutComponents Method needs to be called once so that the totalsize becomes known, before you restore the item positions with the setItemPosition Method. Unfortunately, setTotalsize is a private method and can not be used to restore the state of the layout manager.
Can you post what your problem was and how you solved it? It’s frustrating for people who might search the forum for a topic like this and just find a “OK, solved it” post.