void android.app.
Activity.setTitle(
CharSequence title)
public void setTitle(CharSequence title)
Since:
API Level 1
Change the title associated with this activity. If this is a top-level activity, the title for its window will change. If it is an embedded activity, the parent can do whatever it wants with it.
翻译:更改与此活动相关的标题。如果这是一个顶级的活动,它的窗口标题将会改变。如果它是一个嵌入式级的活动,父类可以随意设置它的标题。
读者可以到这里了解更多的关于标题设置的问题可以到这里查看: