meu código é esse
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
tools:layout_editor_absoluteX="15dp"
tools:layout_editor_absoluteY="9dp"
/>
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="lucas"
app:layout_constraintStart_toStartOf="parent"
tools:layout_editor_absoluteY="55dp"
/>
<TextView
android:id="@+id/textView5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="antonio"
tools:layout_editor_absoluteX="5dp"
tools:layout_editor_absoluteY="108dp"
/>
</LinearLayout>
da mainactivity é esse
package mineconstruc.com.minha_agenda_teste3;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class MainActivity extends Activity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mainactivity);
List<String> alunos = new ArrayList<>(Arrays.asList("Alex","Fram","Leonardo"));
TextView primeiroaluno = findViewById(R.id.textView3);
TextView segundoaluno = findViewById(R.id.textView4);
TextView terceirooaluno = findViewById(R.id.textView5);
primeiroaluno.setText(alunos.get(0));
segundoaluno.setText((alunos.get(1)));
terceirooaluno.setText(alunos.get(2));
}
}
como eu soluciono isso ? a imagem que aparece exibindo é essa