library/src/main/java/com/github/tonywills/loadingbutton/LoadingButton.java
/**
     * Action to perform in order to move the button to the new state. The new state is always different
     * to the current state. Override this to perform your own animations.
     * @param newLoadingButtonState The newLoadingButtonState of the button, guaranteed to be different.
     */
Action to perform in order to move the button to the new state. The new state is always different
to the current state. Override this to perform your own animations.
@param newLoadingButtonState The newLoadingButtonState of the button, guaranteed to be different.
Action to perform in order to move the button to the new state . The new state is always different to the current state . Override this to perform your own animations . @param newLoadingButtonState The newLoadingButtonState of the button guaranteed to be different .
public void animateToState(LoadingButtonState newLoadingButtonState) {
        if (newLoadingButtonState == LoadingButtonState.LOADING) {
            showLoadingView();
            hideTextView();
        } else {
            hideLoadingView();
            showTextView();
        }
    }
public void animateToState ( LoadingButtonState newLoadingButtonState ) { if ( newLoadingButtonState == LoadingButtonState . LOADING ) { showLoadingView ( ) ; hideTextView ( ) ; } else { hideLoadingView ( ) ; showTextView ( ) ; } }
Action to perform in order to move the button to the new state.
Action to perform in order to move the button to the new state .