Android LayoutInflater源码解析
Android使用LayoutInflater来进行布局加载,通常获取方式有两种:第一种:LayoutInflater layoutInflater = LayoutInflater.from(context);第二种:LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);从源码中可以看出第一种是第...