机器人:以编程方式更改应用程序标签吗?机器人、应用程序、标签、方式

2023-09-06 13:30:45 作者:渲染了我的过去

这似乎并不可能,但我希望有人可能知道的一种方式。可以在应用程序的标识(由在清单文件中定义的机器人:标签=@字符串/ APP_NAME)由code设置?

It doesn't seem possible, but I was hoping someone may be aware of a way. Can the label of the application (the one defined in the manifest file by android:label="@string/app_name") be set from code?

推荐答案

这是只读的,AFAIK。

That is read-only, AFAIK.

如果你的目标是改变你的活动的标题栏,你可以叫的setTitle()

If your objective is to change the title bar of your activities, you can call setTitle().