Thanks Sam for the reply,
Let me explain again.
The Content which you have shown in your example is very long in my
case. So it will scrolling.
Now when I will scrolling only the content should be scrolled not the
header and footer.
Header and footer remain at the same position.

What to do for that?

Thanks again.



On Feb 22, 2:25 pm, Sam Dutton <sam.dut...@gmail.com> wrote:
> Not sure I understand what you're trying to achieve, but how about
> this:
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <!-- container -->
> <LinearLayout
>         xmlns:android="http://schemas.android.com/apk/res/android";
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>         android:orientation="vertical"
>
>
>
>         <!-- header -->
>         <TextView
>                 android:background="#000000"
>                 android:gravity="center"
>                 android:layout_height="40dp"
>                 android:layout_width="fill_parent"
>                 android:text="HEADER"
>                 android:textColor="#ffffff"
>         />
>
>                 <!-- content -->
>                 <LinearLayout
>                         
> xmlns:android="http://schemas.android.com/apk/res/android";
>                         android:background="#444444"
>                         android:gravity="center"
>                         android:layout_height="wrap_content"
>                         android:layout_weight="1"
>                         android:layout_width="fill_parent"
>                         android:orientation="vertical"
>                         android:textColor="#ffffff"
>                 >
>                         <TextView
>                                 android:layout_height="wrap_content"
>                                 android:layout_width="wrap_content"
>                                 android:text="CONTENT"
>                         />
>                         <TextView
>                                 android:layout_height="wrap_content"
>                                 android:layout_width="wrap_content"
>                                 android:text="MORE CONTENT"
>                         />
>                 </LinearLayout> <!-- content -->
>
>         <!-- footer -->
>         <TextView
>                 android:background="#000000"
>                 android:gravity="center"
>                 android:layout_height="40dp"
>                 android:layout_width="fill_parent"
>                 android:text="FOOTER"
>                 android:textColor="#ffffff"
>         />
>
> </LinearLayout> <!-- container -->
>
> I've used TextViews for the header and footer, but obviously these
> could be ImageViews, LinearLayouts, or whatever. Likewise, the content
> layout could contain anything -- it's the layout_weight that matters.
>
> Sam Dutton
>
> On Feb 22, 5:24 am, Beena <swdeveloper2...@gmail.com> wrote:
>
> > Hi,
> > I have a large view.
> > I have to show constant top and bottom in the screen. Which contain
> > ImageView and TextView.
> > On the screen this two remain at their position.
> > FOY I am not using ListView.
>
> > How can I do that so the the portion between the top and bottom only
> > movable?
>
> > Please reply.
>
>

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

Reply via email to