示例#1
0
  public void showMtsUI(View v) {
    hasShow = true;
    v.setAlpha(1f);
    float x = getResources().getInteger(R.integer.showmts_ui_x);
    float y = getResources().getInteger(R.integer.showmts_ui_y);
    v.setX(getResources().getInteger(R.integer.showmts_ui_setX));
    v.setY(getResources().getInteger(R.integer.showmts_ui_setY));

    ViewPropertyAnimator vpa = v.animate().x(x).y(y);

    vpa.setDuration(1500);
    vpa.setInterpolator(new BounceInterpolator());
  }
示例#2
0
  protected void show() {
    hasShow = true;
    mOSDLayout.setAlpha(1f);
    float x = mContext.getResources().getInteger(R.integer.ChannelInfo_details_animator_x);
    float y = mContext.getResources().getInteger(R.integer.ChannelInfo_details_animator_y);
    mOSDLayout.setX(mContext.getResources().getInteger(R.integer.ChannelInfo_details_animator_x));
    mOSDLayout.setY(
        mContext.getResources().getInteger(R.integer.ChannelInfo_details_animator_height));

    ViewPropertyAnimator vpa = mOSDLayout.animate().x(x).y(y);

    vpa.setDuration(1500);
    vpa.setInterpolator(new BounceInterpolator());

    mAdView.setVisibility(View.VISIBLE);
  }