title: How Can I rotate the Android TextView as merge cell
body: <p>Here is my <code>LinerLayout</code>, I have tried many times to rotation the <code>TextView</code> as I want, however, neither  <code>width</code> nor the <code>gravity</code> worked as expectation</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;50dp&quot;
      android:layout_height=&quot;match_parent&quot;
      android:gravity=&quot;center&quot;
      android:orientation=&quot;vertical&quot;&gt;
      &lt;TextView
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_above=&quot;@id/divider&quot;
          android:rotation=&quot;270&quot;
          android:text=&quot;11111111111111111111111111&quot;
          android:translationY=&quot;-100dp&quot; /&gt;
  
      &lt;View
          android:id=&quot;@+id/divider&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;3dp&quot;
          android:layout_gravity=&quot;center&quot;
          android:background=&quot;@color/color_blue&quot; /&gt;
  
      &lt;TextView
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_below=&quot;@id/divider&quot;
          android:rotation=&quot;270&quot;
          android:text=&quot;Hello TextView Demos&quot;
          android:translationY=&quot;100dp&quot; /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  <p><strong>NOTE</strong>:</p>
  <ol>
  <li><code>LinearLayout</code>'s width Must be <code>50dp</code></li>
  </ol>
  <p><img src="https://i.stack.imgur.com/3xiuw.png" alt="Here is the screenshot in Android Studio" /></p>