I had a similar problem in that I wanted to use setCompoundDrawables to set the top drawable for the floating tooltip, however TextView (EditText) sets the top drawable to the center, regardless of its width.
I use custom Drawable and inside his draw method, I grab clipBounds and translate it on top, left to return to TextView position 0,0.
Another way to do this is easy: getMatrix and mapPoints from 0.0, then take a negative result from them and translate 0.0 back there.
source share