public void pause() {
    myPlayButton.setText("play");
    myPlayTimer.stop();
  }
This panel simulates and Android view parameter for controlling a button
ConstraintLayoutExamples/CycleEditor/src/com/google/androidstudio/motionlayoutcycles/AnimationPanel.java