Demo code copied from https://github.com/Issacw0ng/SwipeBackLayout