开发者

when does calling the android activity's setTitle actually affects the title?

开发者 https://www.devze.com 2023-03-31 03:58 出处:网络
using eclipse to debug an android application in the emulator. upon executing activity.setTitle() i expect the title of the emulated

using eclipse to debug an android application in the emulator. upon executing activity.setTitle() i expect the title of the emulated application to be changed but it does not. at what point does the new app title actually show? do i have to make any other开发者_如何学Go calls if i want to force it to be shown immediately at that time?


This might vary depending if your activity is an embedded activity or the top-level activity. See the documentation for setTitle(), which says:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消