I want to make a very simple app in Kotlin of an app where the app has 5 pages for example. Each page has multiple choices for items. These items are tallied together at the end of the buttons being selected and added up.
What I'm trying to make is an app that displays how much I charge for video editing/photo editing etc... I've found tutorials on making quizzes which is a similar style I'm looking to do, but I don't know how to carry over to new pages within the app, how to tally them together at the end and display the final price to the user after asking for an email.
CodePudding user response:
How to carry over to new pages within the app
If the page is mean Activity then you can use this: Activity.startActivity
How to tally them together at the end
I don't understand exactly what tally together at the end means, but maybe you can do it with variables.
Display the final price to the user after asking for an email
You can input email through EditText, and you can also use variables to display the entire price as a TextView.
CodePudding user response:
What I'm trying to do is have 5 multiple choice questions. One multiple choice per page. And whatever choice they select will store the value of that. So let me give you an example.
How many photos do you need edited?
- 1 to 4
- 5 to 8
- 9 to 12
- 13 or more.
And the value for example
- 1 to 4 -- Would store the value $5
- 5 to 8 -- Would store the value $10
- 9 to 12 -- Would store the value $15
- 13 or more. -- Would store the value $20
And at the end of all these. It would add them all up together and give them to the person selecting the items.
