Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialZain Sohail
1,847 PointsI am not prompted by Android Studio for onClickListener when I type ' showFactButton' and add a dot after that.
I don't know whats up with Android Studio but I am not getting any drop down menu with helping classes/methods
3 Answers
Gunjeet Hattar
14,483 PointsDid you press ctrl+space to check if its actually working at all?
Sometimes it's a glitch and it may stop auto competition. Try restarting and see if that solved your problem?
Or check your preferences at
Settings(or Preferences in mac)->Editor->Code Completion
Hope this helps
Chris Wolchesky
12,025 PointsI believe you're looking for
showFactButton.setOnClickListener(new OnClickListener());
Zain Sohail
1,847 PointsI found the solution, It was a mistake I made in the code. Thanks for answering ..