A quiz app + more than 10 screens

Welcome Mahmoud,

Screens take up a lot of resources. If your app uses more than 10 screens, it will probably crash.

This is a demo of how I will do the same app with only 2 screens.

Screen1

I make a dictionary of questions as the key and the answer as the value. I add a ListView for the user to select a question and I set the Elements of the ListView to the keys of the dictionary of questions. When the user selects an item, the app will direct to Screen2 with a list of the question and the suitable answer.

Screen2

I add Label1 to show the question and a TextBox for the user to input their answer.

This might be a little tricky, so I advice you to read the following articles and/or watch the YouTube video.

3 Likes