title: how to align text of text view to right side and also text should be in center of text view
body: <p>I want to align my text in text view to right side and also it should be centered in the text view.</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal"
      android:layout_width="match_parent"
      android:layout_height="60dp"
      android:gravity="right"&gt;
  
      &lt;ImageView
          android:layout_height="60dp"
          android:layout_width="60dp"
          android:id="@+id/img_campaign"
          android:paddingLeft="5dp"
          android:paddingRight="5dp"
          android:paddingBottom="5dp"
          android:paddingTop="5dp"&gt;
  
      &lt;/ImageView&gt;
      &lt;TextView
          android:id="@+id/txt_campaign"
          android:layout_height="match_parent"
          android:layout_width="match_parent"
          android:layout_gravity="center"
          android:paddingLeft="5dp"
          android:gravity="right"
          android:text="Dummy TEXT Dummy TEXT "
          android:textSize="20dp"&gt;
  
      &lt;/TextView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>