Example usage for android.widget TextView getScaleY

List of usage examples for android.widget TextView getScaleY

Introduction

In this page you can find the example usage for android.widget TextView getScaleY.

Prototype

@ViewDebug.ExportedProperty(category = "drawing")
public float getScaleY() 

Source Link

Document

The amount that the view is scaled in y around the pivot point, as a proportion of the view's unscaled height.

Usage

From source file:com.android.tv.menu.MenuLayoutManager.java

private void setTempTitleView(TextView dest, TextView src) {
    dest.setVisibility(View.VISIBLE);
    dest.setText(src.getText());/*from   w  w w.  j  a  v  a  2 s .  co  m*/
    dest.setTranslationY(0.0f);
    if (src.getVisibility() == View.VISIBLE) {
        dest.setAlpha(src.getAlpha());
        dest.setScaleX(src.getScaleX());
        dest.setScaleY(src.getScaleY());
    } else {
        dest.setAlpha(0.0f);
        dest.setScaleX(1.0f);
        dest.setScaleY(1.0f);
    }
    View parent = (View) src.getParent();
    dest.setLeft(src.getLeft() + parent.getLeft());
    dest.setRight(src.getRight() + parent.getLeft());
    dest.setTop(src.getTop() + parent.getTop());
    dest.setBottom(src.getBottom() + parent.getTop());
}