I have 9 buttons for numbers. I want to click the button and the textview will show the numbers I clicked.
Asked
Active
Viewed 51 times
-4
-
Show us what have you done till now. Without seeing your code or your screenshot we can't help you. Here's a quick guide to asking questions - https://stackoverflow.com/help/how-to-ask – MD Naseem Ashraf Mar 12 '19 at 05:35
1 Answers
-1
You can check this answer on this question: Android setOnClickListener method - How does it work?
Basically, you can create click listener on your TextView. After that, you can setText your TextView.

Naufal Prakoso
- 90
- 11
-
1The OP is asking about buttons and not adding listeners to the TextView itself. – MD Naseem Ashraf Mar 12 '19 at 05:38