View view = inflater.inflate(R.layout.fragment_record, null);这句话应该是View view = inflater.inflate(R.layout.fragment_record, container,false);
哪儿提示的nullpointerexception 说明白点你可以先用DEBUG 测一下 哪儿空不就找出来了吗? 不懂追问
贴log看下就知道了.