You will have problems if you try to do this. The most obvious problem will be a wrong measurement. Instead, you should create your own view. Something like that:
public class RotatedTextVew extends TextView { public RotatedTextView(Context context) { super(context); } public RotatedTextView(Context context, AttributeSet attrs) { super(context, attrs) } public RotatedTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
I really have not tested this, but here is how I started.
source share