简体   繁体   English

如何在Android应用程序中动态更改标题栏标题?

[英]How can I dynamically change title bar title in the android application?

I want to change the title in the title bar dynamically. 我想动态更改标题栏中的标题。

How do I do this? 我该怎么做呢?

Use setTitle(title string ); 使用setTitle(title string); to change the text of the title bar. 更改标题栏的文本。

为了动态更改标题栏中的标题,您应该使用:

setTitle("your string");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM