Sample code to implement pushing effect like Wechat