How to align view to right of the screen in Android?
<p>How to align view to right of the screen in Android ?</p>

<p>i have used </p>

<pre><code>&lt;LinearLayout android:id="@+id/heading" android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:orientation="horizontal"&gt;

    &lt;ImageView android:id="@+id/widget30" android:layout_width="wrap_content"
         android:layout_height="wrap_content" android:src="@drawable/logo_cpw"&gt;
    &lt;/ImageView&gt;

    &lt;EditText android:id="@+id/widget28" android:layout_width="134px"
        android:layout_height="35px" android:text="EditText"
        android:textSize="18sp" android:background="@drawable/rounded_edit_text_effects"
        android:gravity="right" android:layout_alignParentRight="true"&gt;
    &lt;/EditText&gt;


&lt;/LinearLayout&gt;
</code></pre>

<p>But it is not aligning to the right ? any help ?</p>
