这个R是从哪里来的?为啥老在大写R这里却又错误,请问这个R代表的是什么?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
initViews();
initEvents();
mPaint=new Paint();
}private void initViews() {
mPhoto =(ImageView)findViewById(R.id.id_photo);
// 这个对象就是你选中的图片,需要在onActivityResult中去给他赋值,
mGetImage = (Button) findViewById(R.id.id_getImage);
mDetect = (Button) findViewById(R.id.id_detect);
mTip = (TextView) findViewById(R.id.id_tip);
mWaitting = (View) findViewById(R.id.id_waitting);
}
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
initViews();
initEvents();
mPaint=new Paint();
}private void initViews() {
mPhoto =(ImageView)findViewById(R.id.id_photo);
// 这个对象就是你选中的图片,需要在onActivityResult中去给他赋值,
mGetImage = (Button) findViewById(R.id.id_getImage);
mDetect = (Button) findViewById(R.id.id_detect);
mTip = (TextView) findViewById(R.id.id_tip);
mWaitting = (View) findViewById(R.id.id_waitting);
}