Class must either be declared abstract or implement abstract method error

后端 未结 3 1848
一生所求
一生所求 2020-12-03 08:49

This is my code that is suppose to change some text on button press:-

public class MyActivity extends ActionBarActivity {
    TextView txtview;
    Button bu         


        
3条回答
  •  被撕碎了的回忆
    2020-12-03 09:15

    Tricks: add @Override above onClick(View). Without @Override, the warning means you didn't implement onClickListener.

提交回复
热议问题