i want to have an Image in a Scrollview, together with some Textview which describe the Picture.
Unfortunately the Image gets a big padding on the top and the bottom. There is a big space between the ImageView and the next Textview - maybe about 50 pixels. I dont know why this padding occurs - heres my layoutfile:
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:scrollbars="none">
- <LinearLayout
- android:id="@+id/layout"
- android:orientation="vertical"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- >
- <ImageView android:id="@+id/productimage"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView android:id="@+id/product_name"
- android:textStyle="bold"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView android:id="@+id/code_number"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- <TextView android:id="@+id/product_desc"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:autoLink="all"
- />
- </LinearLayout>
- </ScrollView>
Parsed in 0.005 seconds, using GeSHi 1.0.8.4
Do you know how to get rid of this padding? I just want to display a Image in a Scrollable View with some text.
Thanks!

