Tabnine Logo
ViewPropertyAnimatorCompat.y
Code IndexAdd Tabnine to your IDE (free)

How to use
y
method
in
android.support.v4.view.ViewPropertyAnimatorCompat

Best Java code snippets using android.support.v4.view.ViewPropertyAnimatorCompat.y (Showing top 3 results out of 315)

origin: android-cjj/Android-MaterialRefreshLayout

public void finishRefreshing() {
  if (mChildView != null) {
    ViewPropertyAnimatorCompat viewPropertyAnimatorCompat = ViewCompat.animate(mChildView);
    viewPropertyAnimatorCompat.setDuration(200);
    viewPropertyAnimatorCompat.y(ViewCompat.getTranslationY(mChildView));
    viewPropertyAnimatorCompat.translationY(0);
    viewPropertyAnimatorCompat.setInterpolator(new DecelerateInterpolator());
    viewPropertyAnimatorCompat.start();
    if (mMaterialHeaderView != null) {
      mMaterialHeaderView.onComlete(MaterialRefreshLayout.this);
    } else if (mSunLayout != null) {
      mSunLayout.onComlete(MaterialRefreshLayout.this);
    }
    if (refreshListener != null) {
      refreshListener.onfinish();
    }
  }
  isRefreshing = false;
  progressValue = 0;
}
origin: rubensousa/FloatingToolbar

ViewCompat.animate(getFab())
    .x(getFab().getLeft())
    .y(fabNewY)
    .translationY(getFloatingToolbar().getTranslationY())
    .scaleX(1f)
origin: smuyyh/SprintNBA

public void finishRefreshing() {
  if (mChildView != null) {
    ViewPropertyAnimatorCompat viewPropertyAnimatorCompat = ViewCompat.animate(mChildView);
    viewPropertyAnimatorCompat.setDuration(200);
    viewPropertyAnimatorCompat.y(ViewCompat.getTranslationY(mChildView));
    viewPropertyAnimatorCompat.translationY(0);
    viewPropertyAnimatorCompat.setInterpolator(new DecelerateInterpolator());
    viewPropertyAnimatorCompat.start();
    if (mMaterialHeaderView != null) {
      mMaterialHeaderView.onComplete(MaterialRefreshLayout.this);
    } else if (mSunLayout != null) {
      mSunLayout.onComplete(MaterialRefreshLayout.this);
    }
    if (refreshListener != null) {
      refreshListener.onfinish();
    }
  }
  isRefreshing = false;
  progressValue = 0;
}
android.support.v4.viewViewPropertyAnimatorCompaty

Javadoc

This method will cause the View's y property to be animated to the specified value. Animations already running on the property will be canceled.

Prior to API 14, this method will do nothing.

Popular methods of ViewPropertyAnimatorCompat

  • setDuration
    Sets the duration for the underlying animator that animates the requested properties. By default, th
  • setListener
    Sets a listener for events in the underlying Animators that run the property animations.Prior to API
  • start
    Starts the currently pending property animations immediately. Calling start() is optional because al
  • alpha
    This method will cause the View's alpha property to be animated to the specified value. Animations a
  • setInterpolator
    Sets the interpolator for the underlying animator that animates the requested properties. By default
  • translationY
    This method will cause the View's translationY property to be animated to the specified value. Anima
  • scaleX
    This method will cause the View's scaleX property to be animated to the specified value. Animations
  • scaleY
    This method will cause the View's scaleY property to be animated to the specified value. Animations
  • cancel
    Cancels all property animations that are currently running or pending.
  • translationX
    This method will cause the View's translationX property to be animated to the specified value. Anima
  • setStartDelay
    Sets the startDelay for the underlying animator that animates the requested properties. By default,
  • withLayer
    The View associated with this ViewPropertyAnimator will have its ViewCompat#setLayerType(View,int,an
  • setStartDelay,
  • withLayer,
  • rotation,
  • setUpdateListener,
  • withEndAction,
  • alphaBy,
  • rotationX,
  • rotationY,
  • scaleXBy,
  • scaleYBy

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now