library/src/main/java/com/github/tonywills/loadingbutton/HorizontalLoadingButton.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. You can get the currently shown loading view
     * by calling getLoadingView().
     * @param newState The newState 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. You can get the currently shown loading view
by calling getLoadingView().
@param newState The newState 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 . You can get the currently shown loading view by calling getLoadingView () . @param newState The newState of the button guaranteed to be different .
public void animateToState(State newState) {
        if (newState == State.LOADING) {
            showLoadingView();
        } else {
            hideLoadingView();
        }
    }
public void animateToState ( State newState ) { if ( newState == State . LOADING ) { showLoadingView ( ) ; } else { hideLoadingView ( ) ; } }
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 .