我已经将TextView旋转了270度。但是问题在于它是从x轴的中点旋转的,因此在左右两侧都有一个空间。并且由于空间原因,文本无法在“相对”布局的左侧对齐。
这是我的代码
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="300dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:rotation="270"
android:text="Sept 2015 - Dec 2016"
/>
</RelativeLayout>
这是结果。
我想这样对齐TextView