I was learning Transitions from following article:Transitions - ADP.
He has implemented method toggleVisibility() as follows:
public void onClick(View v) {
TransitionManager.beginDelayedTransition(mRootView, new Fade());
toggleVisibility(mRedBox, mGreenBox, mBlueBox, mBlackBox);
}
private static void toggleVisibility(View... views) {
for (View view : views) {
boolean isVisible = view.getVisibility() == View.VISIBLE;
view.setVisibility(isVisible ? View.INVISIBLE : View.VISIBLE);
}
From above I understand that View... views
represents all view
parameters in the method. But, I have never seen before this ...
operator. What is it? How it works? I googled nut couldn't get any anser. Can anyone help me?