How do I sum up parameters from 2 different listview together provided that the total data from each listviews increases after each button clicked?
I want to make a textview which sums up the overall data from 2 listviews which have their total data of its own.
Do I make a textview inside the button void method or in the oncreate method? If so, how do i sum both of the listviews data altogether?
What I have tried:
Have tried getting the data from the textviews of listview1 and listview2 by getText and changing it to integer. Combine both of its data and change it back to string and input it back in Texview3.
Result, app crashes.