I'm trying to get following view: Description on left site and value on the right. e.g.:

enter image description here


The problem is that the text can be long so I wrap it in HorizontalScrollView. I'm using following xml:

<LinearLayout
    android:layout_width="fill_parent"
    android:layout_weight="1"
    android:orientation="horizontal"
    android:layout_height="wrap_content">
    <TextView
        android:layout_height="wrap_content"
        android:textColor="#000000"
        android:layout_width="110dp"
        android:text="Description:"/>
    <HorizontalScrollView
        android:layout_weight="1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
        <TextView
            android:layout_height="wrap_content"
            android:textColor="#000000"
            android:layout_width="wrap_content"
            android:layout_gravity="right"
            android:text="Very1 very2 very3 very4 very5 very6 long text"/>
    </HorizontalScrollView>
</LinearLayout>

And here is the problem. After scroling to left most corner I got view (missing beginning of text):

enter image description here


After scroling to right most corner I got view (addition space after text):

enter image description here


If I change the TextView android:layout_gravity to "left" everything works as expected. After scroling to left most corner I got view:

enter image description here


After scroling to right most corner I got view:

enter image description here


Is it a way to make it working correctly and al

Edit
Report