2012年6月26日 星期二

setContentView

青少棒揚威記  珍愛人生  成人

TotalFindersetContentView() 是一個跟很多函數都有相關的函數,requestWindowFeature() 要在 setContentView() 前面執行才不會發生錯誤,而 findViewById() 則必須在 setContentView() 後面執行才不會取得 null。不知道為什麼,文件也沒有註明,有空再來研究吧。

範寧

沒有留言:

張貼留言