Frage

android:rotation="180"

Android 2.2 - 2.3 - not supported.

for example app: https://play.google.com/store/apps/details?id=example.matharithmetics

War es hilfreich?

Lösung

You can Extend the TextView class and override the onDraw method.

@Override
protected void onDraw(Canvas canvas) 
{
     canvas.save();
     canvas.rotate(180,<appropriate x pivot value>,<appropriate y pivot value>);
     super.onDraw(canvas);
     canvas.restore();
}

Or using the line myCusstomView.setRotation(180); should work

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top