android-studio - android studio 导包不完整
迷茫
迷茫 2017-04-17 17:51:00
0
3
505

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
伊谢尔伦

I guess your problem may be that Android Studio prompts an error, and you suspect that the import package is incomplete.

Judging from the import of the code, there is no problem with importing the package. The reason why Android Studio reported an error is because you did not implement the onClick method of View.OnClickListener.

Ty80

It should be a reminder that this interface is not implemented. Implement it:

privite class myList implements View.OnClickListener{
    @Override  
    public void onClick(View v) {  
        //TODO           
    } 
}
      
迷茫

What the poster means is that there is no automatic Override method, only a class shell!
This is a problem with AS recognition after you write. Sometimes it is possible, sometimes it is not. This is indeed inconvenient and requires a second operation to complete!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template