LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);这句话老是报错指针为空,到底是什么问题呢
先看下context是不是为null了