Merged SlidingPanelLayout codes