//改变本界面的布局 //布局填充器 //获取此对象有三种方式: //LayoutInflater ll = LayoutInflater.from(this) ; //LayoutInflater out = getLayoutInflater() ; LayoutInflater ll= (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE) ; View v = ll.inflate(R.layout.login, null) ; setContentView(v) ;
android中布局填充器LayoutInflater的使用
最新推荐文章于 2024-07-25 16:05:51 发布