三个案例带你看懂LayoutInflater中inflate方法两个参数和三个参数的区别
View view = LayoutInflater.from(context).inflate(R.layout.xxx, this,true);
失效时,使用
View view = LayoutInflater.from(context).inflate(R.layout.xxx, this,false);
addView(view);
三个案例带你看懂LayoutInflater中inflate方法两个参数和三个参数的区别
View view = LayoutInflater.from(context).inflate(R.layout.xxx, this,true);
失效时,使用
View view = LayoutInflater.from(context).inflate(R.layout.xxx, this,false);
addView(view);