when does calling the android activity's setTitle actually affects the title?
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.
精彩评论