LayoutInflater === * `LayoutInflater`用來找 `res/layout/` 底下的 `xml` 佈局檔,並且實例化 * `findViewById()`:`xml` 佈局檔下的具體 `widget` 控制項(如 `Button`、`TextView`…) 簡單來說,就是要先有第一步驟,才會有第二步驟 `LayoutInflater` 的 method 分為有兩個參數與三個參數,這部分請參考連結。 ## Ref. [三个案例带你看懂LayoutInflater中inflate方法两个参数和三个参数的区别](https://blog.csdn.net/u012702547/article/details/52628453) [https://spicyboyd.blogspot.com/2018/03/app-layoutinflater.html](https://spicyboyd.blogspot.com/2018/03/app-layoutinflater.html) ###### tags: `介紹`