在界面中更改TextView的文本可以通过以下步骤实现:
<TextView
android:id="@+id/myTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="初始文本" />
TextView myTextView = findViewById(R.id.myTextView);
myTextView.setText("新的文本");
以上步骤将会把TextView的文本更改为"新的文本"。