代碼改變世界
錯誤:
Type inference failed : Not enough information to infer parameter T in fun<T:View> findViewById(id: Int): T! Please specify it explicitly.
解決:
改為
holder.btnInstall = convertView.findViewById<Button>(R.id.btn_install)
轉自:http://blog.csdn.net/myfwjy/article/details/78228829
