How to layout view right aligned and bottom of an LinearLayout
<p>I am trying to layout 1 textview (upText) left aligned and 1 textview (downText) and an image view (image) both on the same line and right aligned.</p>

<p>how can I do that? I tried that, but both 'textview' and image view at left aligned.</p>

<p></p>

<pre><code>        &lt;TextView
            android:id="@+id/uptext"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="left"/&gt;
        &lt;TextView
            android:id="@+id/downtext"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:singleLine="true"
            android:gravity="right|bottom"/&gt;
        &lt;ImageView
            android:id="@+id/image"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="right|bottom"/&gt;
    &lt;/LinearLayout&gt;
</code></pre>
