Finished base logic of SlidingNotificationsLayout.java.