I am using a TextView tag to implement an error message. This error message's value depends on a number of different conditions, and therefore cannot be a single string. I am trying to make it so that the error message displayed is the output of a getErrorMessage method. How can I do that without using android:onClick, since it's not quite a button, but rather a text whose value changes from time to time?
Sorry if this isn't quite clear, this is my first time using Android Studio as well as Stack Overflow.