0
I have 02 Textview and I want to put them in the center of a Videoview where a text is on top of each other.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<VideoView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/videoView"
android:layout_gravity="center_horizontal" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="30º C"
android:layout_gravity="center_horizontal"
android:textSize="28sp"
android:id="@+id/Temperatura" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Notícias regionais"
android:layout_gravity="center_horizontal"
android:textSize="28sp"
android:id="@+id/Notícia" />
</LinearLayout>
In addition, add the android attribute:paddingTop="50dp" in the last Textview so that one text is not on top of the other.
– Túlio Calazans