function issue

0 Akash Tomar · March 12, 2015
Why am I not getting the function setOnClickListener() on android studio?

Post a Reply

Replies

Oldest  Newest  Rating
0 Dol Lod · March 12, 2015
Are you call the function from  a view? Views have the setOnClickListener method. Each view has this method for its own listener. 

Ex.

TextView helpText=(TextView)view.findViewById(R.id.helpTextView);
helpText.setOnClickListener ... 
  • 1

Java / Android Development

107,317 followers
About

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

Links
Moderators
Bucky Roberts Administrator