TextView
Layout
<TextView
android:text="This is textview"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:id="@+id/textView" android:layout_margin="16dp"/>
Java
TextView textView = findViewById(R.id.textView);
textView.setText("text");
Last updated
Was this helpful?