布局填充器的三种写法:
1.layoutInflater=layoutInflater.from(this);
2.layoutInflater=(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
3.layoutInflater=this.getLayoutInflater();
时间: 2024-11-03 21:41:59
布局填充器的三种写法:
1.layoutInflater=layoutInflater.from(this);
2.layoutInflater=(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
3.layoutInflater=this.getLayoutInflater();