A very late answer, and I'm sure you don't care, but someone else. :)
I donβt quite understand why you want a sliding drawer at all. Most likely, itβs easier and faster to write your own custom view, which allows you to enter and exit, rather than trying to use a sliding drawer. This way you will have more control.
Another thought is to try to get the visible child rectangle of the sliding drawer from its container using getChildVisibleRect , and calculate the visible percentage using getWidth in the drawer. I'm not at all sure this will work. :)
Good luck anyway.
source share