A
A
Agrael313 Zashefrovano2021-12-08 22:50:09
android studio
Agrael313 Zashefrovano, 2021-12-08 22:50:09

How to set the number of clicks on a button through editText?

Hello, help me write a button with a certain number of clicks
. I have 2 MainActivities, they move between each other (from one activity to another, and back)
In the first Activity there is a Button for moving to the next activity and an EditText in which you need to specify any number from 4 to 10 ( this is the number of people)
(I could do it through the Spinner, but for some reason you want to)
In general, when a number from 4-10 is indicated, then in the second activity the button will be pressed the number of times specified in the editText on the first activity

I hope I explained it clearly
Thank you in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question