I have a button which when pressed gets bigger and changes text color, but when the screen rotates, the button loses the new properties (size and text color). How can I make it save? Here's the code for the button
public void changeColor(View view) {
Button button2 = (Button) findViewById(R.id.button2);
button2.setTextColor(Color.CYAN);
button2.setTextSize(50);
}
in the button XML I have given it ID, and onClick