Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how can i import onClickListener in my android project?
Posted

1 solution

As you don't provide any code here so it is difficult to say you the exact scenario.But for starters, it's always best to let Eclipse(if you use it as your IDE) manage all imports by tapping Ctrl+Shift+O when you see an import error.
Generally you need to import android.view.View.OnClickListener to implement OnClickListener in your code.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900