I have a couple of text fragments. I need a button, but it turns out that there are two with which you can adjust the Size TextView .

 case R.id.button3: MyTextView.setTextSize(20.0f); break; 

How to save the resulting value (text size) to transfer it to another fragment. That is, if the user chose such a text size so that he, going to the second fragment, again did not change the size, and immediately selected the selected size of the first fragment?

1 answer 1

Save the size settings in SharedPreferences, and then read them from the second snippet.