Example usage for android.widget TextView getX

List of usage examples for android.widget TextView getX

Introduction

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

Prototype

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

Source Link

Document

The visual x position of this view, in pixels.

Usage

From source file:de.tobiasbielefeld.solitaire.games.Game.java

/**
 * mirrors the textViews, if there are any. Used for left handed mode
 *///from  w  w  w . j  a  va 2  s . c o m
public void mirrorTextViews(RelativeLayout layoutGame) {
    for (TextView textView : textViews) {
        textView.setX(layoutGame.getWidth() - textView.getX() - Card.width);
    }
}