У меня есть следующий макет, который я хотел бы сделать, чтобы текст отображался в центре и середине представления. Как я могу это понять?
Я пробовал настраивать различные атрибуты тяжести при просмотре макета в графическом представлении, но ничто не меняет его. Я бы хотел, чтобы текстовое изображение в центре, которое я сделал, но на полпути вниз.
спасибо матовому.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/carefreebgscaledalphajpg" >
<TextView
android:id="@+id/textviewdatefornocallspage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="You have no calls for "
android:textSize="25sp" />
</LinearLayout>