Relative Content

Tag Archive for javaandroidandroid-studioandroid-fragments

My Fragment Result Listener won’t update the text

I am trying to get my app to display different text each time a button is pressed. The first time I press any button it works fine, but afterwords it reverts my textviews on the fragment to the default text I set on the layout xml file. Here is the code for the buttons, as well as the function I am using to load data to the fragment: