Moving and resizing DrawerLayout’s content on sliding

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 corner, we’ll stick both of these in another holder ViewGroup. If that label TextView isn’t needed, the holder ViewGroup can be omitted, as well. A basic DrawerLayout setup for the example:

  The […]

person shubham sharmaaccess_time June 6, 2018launch Read More

How to achieve right to left animation to start the activity

Do these modifications to your animation files: enter.xml:

  exit.xml:

  You’ll have your second activity sliding in from right to the left. For a better understadnig on how to play around with the fromXDelta and toXDelta values for the animations, here is a very basic illustration on the values: This way you […]

person shubham sharmaaccess_time March 6, 2017launch Read More