獲取inflater的多種方法

inflater,俗稱打氣筒,做用是能夠把一個佈局轉換爲一個view對象。是Adapter中必備的工具。web //第一種方法 View.inflate(getApplicationContext(),R.layout.item,null); //第二種方法 context.getLayoutInflater().inflate(R.layout.item,null); //第三種方法 Lay
相關文章
相關標籤/搜索