我是一名新的android开发人员,我ImageButton
在应用程序中使用,并在后台添加了一些图片。一切看起来都不错,但是当我想在某个类中使用它并使用下面的代码时,将强制关闭。
Help_Button = (Button) findViewById(R.id.Help_Button);
Button
并且ImageButton
彼此不同。您必须使用ImageButton
代替Button
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句