i have a problem here.
I'm trying to put text on the screen, which is actually composed of different views, (testview, a spinner, and a textview) but I want them to be shown next to each other, with wrapping when the left of the screen is reached.
Here's the xml that I use, but that simply doesn't work they way I want, see screenshot below
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/addselecteditemview" android:orientation="horizontal"
- android:layout_width="fill_parent" android:layout_height="wrap_content"
- android:scrollbars="vertical">
- <TextView style="@style/Standard" android:id="@+id/standardamount"
- android:layout_width="wrap_content" android:text="standard amount"
- android:layout_height="wrap_content" />
- <Spinner android:id="@+id/unit_spinner" android:layout_width="wrap_content"
- android:layout_height="wrap_content" android:drawSelectorOnTop="true"
- android:prompt="@string/choose_unit" />
- <TextView style="@style/Standard" android:id="@+id/fooditemdescription"
- android:layout_marginLeft="5sp" android:layout_width="wrap_content"
- android:text="item description" android:layout_height="wrap_content"/>
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
as you can see, the text on the right side of the spinner should wrap back to the left of the screen. I tried a lot (relativelayout, ..) but probably not everything
