Возможный дубликат:
Как разместить текст по горизонтали и вертикали в TextView на Android?
У меня есть RelativeLayout
(до того, как он был LinerLayout
), который занимает весь экран, и я хочу поместить его в центр Layout
, a TextView
. Я пытаюсь сделать это с помощью gravity = "center"
layout_gravity = "center"
и еще нескольких, но это не сработает.
Кто-нибудь знает, как центрировать TextView
в середине экрана?
ИЗМЕНИТЬ
Хорошо, я думаю, что я плохо объяснил. Я думаю, что TextView
находится в центре, но я хочу сосредоточиться на тексте в TextView
. Могу ли я это сделать?