标签:text out edittext one put 布局 找不到 input ttext
findViewByid一定要放在setContentView(R.layout.a..)之后
否则还没布局,根本找不到这些控件
setContentView(R.layout.activity_input);
editText0 = (EditText) findViewById(R.id.sample_edit_text0);
buttonCheck = (Button) findViewById(R.id.sample_buttonCheck);
buttonExit= (Button) findViewById(R.id.sample_buttonExit);
findViewByid一定要放在setContentView(R.layout.a..)之后
标签:text out edittext one put 布局 找不到 input ttext
原文地址:https://www.cnblogs.com/strongdady/p/9090306.html