On Feb 22, 2:23 pm, Beena <[email protected]> wrote:
> Here is the main.xml
> =========
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>         android:background="#FFF"
>         android:orientation="vertical"
>     android:scrollbarSize="12dip">
>
>         <LinearLayout
>            android:layout_width="wrap_content"
>            android:layout_height="wrap_content"
>            android:layout_gravity="center"
>         >
>     <ImageView
>                 android:id="@+id/serchImage"
>                         android:src="@drawable/close"
>                         android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:layout_gravity="right"/>
>         </LinearLayout>

if your header is simply ImageView you dont need to embed it in
LinearLayout, the same applies to footer

>
>         <ScrollView xmlns:android="http://schemas.android.com/apk/res/
> android"
>                     android:layout_width="fill_parent"
>                     android:layout_height="fill_parent"
>                     android:scrollbarSize="12dip">
>

your ScrollView should have:
android:layout_height="0px"
android:layout_weight="1"

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to