Issue
I made a quiz application in android and after the user clicks on reset button i want all the marked answers to be unmarked or the app becomes same as when it started. How can i do so?
The code for XML and JAVA are present in the following github repository. Code:
Here is a screenshot of the application. I want the app to be like starting when i click on the RESET button.
Solution
Okay, after I read your source code from here I decided I shouldn't let you go on with that approach at all.
Take some time, and read a little bit about RecyclerView and how it works, it will make your life way easier.
Here is a tutorial on how to use it in a sample.
Once you get familiarized with it, I am sure you will make that screen look better and also the code will be much much more clear and well written.
I could come with an approach for your particular case, but then you will copy paster it and that's it. Take some time, you'll like what you'll learn <3 If is really needed I will edit the answer with a simple implementation.
Happy coding <3
Answered By - Ionut J. Bejan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.