I want to execute one of the following java instructions on android several times so i want to know which approach is better for performance Switch between
View.setBackgroundColor(Color.Black);
And
View.setBackgroundColor(Color.White);
Or between
View.setVisibility(View.Invisible);
And
View.setVisivility(View.Visible);
I only care about performance for this task