I have a problem placing a textView at specified center\'s x and y coordinates. Firstly, I tried to set the text in the textView, and to move the view with the width and the
Rect bounds = new Rect(); textView.getPaint().getTextBounds(textView.getText().toString(), 0, textView.getText().length(), bounds);
bounds.width() will give you the accurate width of the text in the Text View.
bounds.width()