use 17 sdk
Adapter type simplfication. Notify on change logic. Safer page selection. Small hack with measuring - it would be better to consider gravity.