Hello all,
I am working in Android Studio using Java and I am trying to figure out how to get a 'live' update. I have a RecyclerView that is populating from a data class and there is a spinner/dropdown container within each row of the RecyclerView. Essentially, the user will pick a number from that spinner, and what I want to happen is that number gets multiplied by a number attached to the data of that individual row (the price).
I think I have the math sorted, but I then want to display the total on the activity screen outside of the RecyclerView, in the TextView by "Total:". Any idea how I can make that happen 'live'?
I've tried adapting the TextView to MaterialTextViews and Editable to use those listeners, but nothing happened (but it didn't crash either).
Thank you in advance for any assistance you can provide!
I am working in Android Studio using Java and I am trying to figure out how to get a 'live' update. I have a RecyclerView that is populating from a data class and there is a spinner/dropdown container within each row of the RecyclerView. Essentially, the user will pick a number from that spinner, and what I want to happen is that number gets multiplied by a number attached to the data of that individual row (the price).
I think I have the math sorted, but I then want to display the total on the activity screen outside of the RecyclerView, in the TextView by "Total:". Any idea how I can make that happen 'live'?
I've tried adapting the TextView to MaterialTextViews and Editable to use those listeners, but nothing happened (but it didn't crash either).
Thank you in advance for any assistance you can provide!