这似乎并不可能,但我希望有人可能知道的一种方式。可以在应用程序的标识(由在清单文件中定义的机器人:标签=@字符串/ 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()
.