Question

android:rotation="180"

Android 2.2 - 2.3 - not supported.

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top