</pre><pre name="code" class="java">protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater =(LayoutInflater) MainActivity.this.getSystemService(LAYOUT_INFLATER_SERVICE);
View view =inflater.inflate(R.layout.activity_main,null);
setContentView(R.layout.activity_main);
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交