title: How to Align an ImageView to the right side?
body: <p>I want to set an imageview to the right side inside the cardview but aligning is not working... please suggest me</p>
  
  <p>Layout</p>
  
  <pre><code>  &lt;FrameLayout
      android:id="@+id/framelayout"
      android:layout_height="match_parent"
      android:layout_width="match_parent"/&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:id="@+id/lin1"
          android:orientation="vertical"&gt;
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal"&gt;
          &lt;android.support.v7.widget.CardView
              xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginLeft="05dp"
              android:layout_marginTop="15dp"
              android:id="@+id/casardviewvisit"&gt;
                  &lt;LinearLayout
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:background="#482048"
                      android:orientation="horizontal"&gt;
                  &lt;ImageView
                      android:layout_width="wrap_content"
  
                      android:layout_height="wrap_content"
                      android:src="@drawable/omg"/&gt;
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:textSize="20dp"
                      android:textColor="#fff"
                      android:textStyle="bold"
                      android:layout_marginLeft="20dp"
                      android:layout_gravity="center"
                      android:text="Add Order"/&gt;
  
                      &lt;ImageButton
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:src="@drawable/sent"
                          android:layout_gravity="right"
                          android:id="@+id/imageButtsdon" /&gt;
                  &lt;/LinearLayout&gt;
          &lt;/android.support.v7.widget.CardView&gt;
      &lt;/LinearLayout&gt;
    &lt;/framelayout&gt;
  </code></pre>
  
  <p>Like this way i am trying but it is not working and i don't know why this is not working</p>