How does Android realize that one half of a View slides off the screen while the other half is still displayed and Button and the like inside work normally?

  android, question

请输入图片描述

-For example, a list is full of screens at the beginning. When clicking one of the items, the whole list slides to one side and the empty area displays the corresponding contents to be displayed; Is there a reliable and convenient way to realize this effect?

sidemenuhttps://github.com/maddeye/android-sidemenuThis may not be the best, but you can refer to this keyword to find it.