KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to get following view: Description on left site and value on the right. e.g.: 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 ): After scroling to right most corner I got view ( addition space after text ): If I change the TextView android:layout_gravity to "left" everything works as expected. After scroling to left most corner I got view: After scroling to right most corner I got view: Is it a way to make it working correctly and al
Tags (comma-separated)
Save Edits
Cancel