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 <[email protected]> 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 [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