重写BaseAdapter的时候出现问题了 convertView = inflate.inflate(R.layout.list, null); =>convertView = LayoutInflater.inflate(R.layout.list, null); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 报错Cannot make a static reference to the non-static method inflate(int, ViewGroup) from the type LayoutInflater在类里面我定义了 LayoutInflater inflate的了 该如何实例化呢?LayoutInflater inflate; 这个没实例化啊 ,你log下看看是不是空把,是空就 在构造中传个Context对象过来然后inflate.from(context)实例化 该如何实例化呢?LayoutInflater inflate; 这个没实例化啊 ,你log下看看是不是空把,是空就 在构造中传个Context对象过来然后inflate.from(context)实例化确实没实例化可是 convertView = LayoutInflater.from(context).inflate(R.layout.list, null);这样实例化跟inflate.from(context)这样有什么区别的呢? 该如何实例化呢?LayoutInflater inflate; 这个没实例化啊 ,你log下看看是不是空把,是空就 在构造中传个Context对象过来然后inflate.from(context)实例化确实没实例化可是 convertView = LayoutInflater.from(context).inflate(R.layout.list, null);这样实例化跟inflate.from(context)这样有什么区别的呢?我写错了,你写的是对的,我那样不能实例化,因为对象都还是为空 100分求:通过webview的本地html5播放mp3问题。 求大神给小鸟解答 硬盘主引导记录方面的问题 启动不同的activity Android在Eclipse的debug模式下调试的时候很卡。。。 adb push 是不是不支持中文命名的资源文件? 求助,这种效果如何布局 关于自定义view(画板)手势监听的问题 Android新手问Button的click事件 andriod串口接收 关于fragment传参 关于android的文件输入流 Ant循环打包
Cannot make a static reference to the non-static method inflate(int, ViewGroup) from the type LayoutInflater在类里面我定义了 LayoutInflater inflate的了
LayoutInflater inflate; 这个没实例化啊 ,你log下看看是不是空把,是空就 在构造中传个Context对象过来然后inflate.from(context)实例化
LayoutInflater inflate; 这个没实例化啊 ,你log下看看是不是空把,是空就 在构造中传个Context对象过来然后inflate.from(context)实例化
确实没实例化
可是
convertView = LayoutInflater.from(context).inflate(R.layout.list, null);这样实例化跟
inflate.from(context)这样有什么区别的呢?
LayoutInflater inflate; 这个没实例化啊 ,你log下看看是不是空把,是空就 在构造中传个Context对象过来然后inflate.from(context)实例化
确实没实例化
可是
convertView = LayoutInflater.from(context).inflate(R.layout.list, null);这样实例化跟
inflate.from(context)这样有什么区别的呢?
我写错了,你写的是对的,我那样不能实例化,因为对象都还是为空