Error in long click button

0 Anish Nkr · July 9, 2015
Hey...I am getting an error in the statement Button.OnLongClickListener.Kindly help me out./images/forum/upload/2015-07-09/52d9fe5c6cbc1002babbd984960fee68.png

Post a Reply

Replies

Oldest  Newest  Rating
0 Gabriel Schrag · September 2, 2015
I got this same problem. Highlight "OnLongClickListener" and click the red "error" lightbulb on the left of the screen. Click "implement methods" and choose "onLongClick(v:View):boolean". This creates the public boolean OnLongClick method desired in the same format that was described by thenewboston, but android studio accepts this method.
  • 1

Java / Android Development

107,072 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator