title: how to display image to right side of cardview in android
body: <p>I am trying to display images inside <code>CardView</code>s like in the example below. But my <code>ImageView</code> is displayed on the left side. How do I change it to the right alignment? Here is my XML code.</p>
  
  <p>XML Layout:</p>
  
  <pre><code>&lt;android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="200dp"
  xmlns:card_view="http://schemas.android.com/tools"
  android:layout_margin="8dp"
  card_view:cardElevation="5dp"
  card_view:cardCornerRadius="5dp"&gt;
  
  &lt;ImageView
      android:id="@+id/img_thumbnail"
      android:layout_width="235dp"
      android:layout_height="130dp"
      android:scaleType="fitXY"
  
      android:src="@drawable/imag_bg" /&gt;
  
  &lt;TextView
      android:id="@+id/tv_nature"
      android:layout_width="match_parent"
      android:layout_height="130dp"
      android:text="TextView"
      android:textColor="#FFFFFF"
      android:layout_alignParentLeft="false"
      android:layout_alignParentStart="true" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>Example of what I want:</p>
  
  <p><a href="https://i.stack.imgur.com/eQ8bt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eQ8bt.png" alt="here my sample image i need like this"></a></p>