title: Android : rotation in textview adds margin on left
body: <p>I have used rotation:-90 in xml to rotate the text vertical. But its adding margin on left, I want textview on left side of screen without margin.<a href="https://i.stack.imgur.com/YGRCV.png" rel="nofollow"><img src="https://i.stack.imgur.com/YGRCV.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="center_vertical"&gt;
  
          &lt;TextView
              android:id="@+id/txtNetworkStatus"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_centerVertical="true"
              android:layout_margin="0dp"
              android:background="@color/completed"
              android:padding="3dp"
              android:rotation="-90"
              android:text="Online"
              android:translationZ="1dp" /&gt;
      &lt;/LinearLayout&gt;
  </code></pre>