$ 0 0 Are you aware of the 'DrawableGravity' class? You can use that to position your text. Then you won't have to do the calculations yourself.