I have just started working with fragments in android. In my main layout, I have two buttons. When I click one button it displays the fragment (which is a piece of text). Now what I want is that when I click the other button, it should change the color of that text inside the fragment. Is that possible ? If yes, then kindly give me an example code. Because I could not find it on internet.
Thank you.