Nullpointer exception on Inflater in Custom Drawer Adapter
问题 I'm trying to make a custom adapter for my navigation drawer, and keep getting a nullpointer exception on the layout inflater. I've tried declaring the LayoutInflater variable inside and outside the getView method as suggested in other posts, but to no avail. Below is my Custom Adapter Class Context mContext; private ArrayList<String> mValues = new ArrayList<String>(); LayoutInflater inflater; public DrawerListAdapter(Context context, ArrayList<String> mValues) { super(context, R.layout