After reading your article and writing a few samples I decided to use it in an application I'm developing.
One note: I believe the first line of setContinuousLayout should be
boolean oldContinuousLayout = this.continuousLayout;
instead of
boolean oldContinuousLayout = continuousLayout; |