Moving and resizing DrawerLayout's content on sliding
问题 I just came across this app and saw this custom animation for a DrawerLayout . I'm guessing it has to take a screenshot first, then draw a custom View in the Activity , but I'm not sure about that, nor the details. Does anyone know how to do this? 回答1: You can do this by translating and scaling the content View in the onDrawerSlide() method of a DrawerListener on your DrawerLayout . Since the content View itself is resizing, and there's a separate TextView that appears in the bottom right