亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 877 | 回復(fù): 0
打印 上一主題 下一主題

跟Dialog干上了 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-12-20 09:44 |只看該作者 |倒序瀏覽
protected Dialog onCreateDialog (int id, Bundle args)
Since: API Level 8

If you use showDialog(int), the activity will call through to this method the first time, and hang onto it thereafter. Any dialog that is created by this method will automatically be saved and restored for you, including whether it is showing.

當(dāng)你調(diào)用showDialog(int )方法時,系統(tǒng)會自動調(diào)用此方法,如果是第一次調(diào)用,會根據(jù)你對onCreateDialog(int ,Bundle)的實現(xiàn)創(chuàng)建此Dialog,然后系統(tǒng)為你保存下此dialog,以備下次再調(diào)用showDialog(int)方法時直接展現(xiàn)系統(tǒng)為你保存的此Dialog,而不會再調(diào)用onCreateDialog(int ,Bundle ) 方法去創(chuàng)建Dialog。

如果你想要系統(tǒng)為你管理保存dialogs,你就得自己重寫這個方法。當(dāng)然你也可以不選擇此方法,隨時用,隨時創(chuàng)建。

若你想讓系統(tǒng)調(diào)用此方法之前做點什么,你可以重寫onPrepareDialog(int, Dialog, Bundle)方法。

Parameters
id The id of the dialog.
args The dialog arguments provided to showDialog(int, Bundle).
Returns
  • The dialog. If you return null, the dialog will not be created.
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP