Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8499713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:44:30+00:00 2026-06-11T00:44:30+00:00

I have layout which contains a header, content in the scrollview and a footer.

  • 0

I have layout which contains a header, content in the scrollview and a footer. The position of the header and footer should be fixed, but when I start the app, the footer isn’t visible, I can only scroll to bottom of the content and that’s it. How can I make it so that I can still scroll down to bottom of the content, but that my footer is allways visible?

<?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="#2E2E2E"
    android:orientation="vertical" >

    <FrameLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="50dp"
        android:background="#CC0000"
        android:orientation="horizontal" >
         <LinearLayout
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:layout_gravity="center_vertical"
            android:layout_marginLeft="10dp">

        <ImageView
            android:id="@+id/imageView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/internet_group_chat" />

        <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="NG Online"
            android:textStyle="bold"
            android:layout_marginLeft="5dp"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:layout_gravity="center"/>


    </LinearLayout>
    </FrameLayout>
    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="1dp"
        android:background="#990000"
        android:orientation="horizontal" >
        <Button
            android:id="@+id/mBtnNaslovnica"
            style="@style/button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Naslovnica" />

        <Button
            android:id="@+id/mBtnVjesti"
            style="@style/button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Vjesti" />

        <Button
            android:id="@+id/mBtnVideo"
            style="@style/button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Video" />

        <Button
            android:id="@+id/mBtnFoto"
            style="@style/button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="2.33"
            android:text="Fotogalerija" />
    </LinearLayout>
    <ScrollView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <LinearLayout
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">
            <LinearLayout
                xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">
                <LinearLayout
                    xmlns:android="http://schemas.android.com/apk/res/android"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:paddingTop="5dp"
                    android:paddingBottom="5dp"
                    android:background="#000000"
                    android:orientation="vertical">
                    <TextView
                        android:id="@+id/cur_news_title"
                        android:layout_width="300dp"
                        android:layout_height="wrap_content"
                        android:text="Large Text"
                        android:textSize="20dp"
                        android:layout_marginTop="5dp"
                        android:layout_marginLeft="5dp"
                        android:textAppearance="?android:attr/textAppearanceLarge" />  
                </LinearLayout>
                <FrameLayout
                    xmlns:android="http://schemas.android.com/apk/res/android"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">
                    <ImageView
                        android:id="@+id/cur_news_img"
                        android:scaleType="fitXY"
                        android:layout_width="fill_parent"
                        android:layout_height="200dp"
                        android:src="@drawable/rihanna" />
                    <LinearLayout
                        xmlns:android="http://schemas.android.com/apk/res/android"
                        android:layout_width="fill_parent"
                        android:layout_height="30dp"
                        android:background="#B3000000"
                        android:orientation="vertical">
                        <LinearLayout
                            xmlns:android="http://schemas.android.com/apk/res/android"
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:orientation="horizontal"
                            android:layout_marginTop="2dp" >                    
                            <TextView
                                android:id="@+id/cur_news_atuhor"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_marginLeft="5dp"
                                android:text="Small Text"
                                android:textAppearance="?android:attr/textAppearanceSmall" />
                            <TextView
                                android:id="@+id/cur_news_time"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_marginLeft="5dp"
                                android:text="Small Text"
                                android:textAppearance="?android:attr/textAppearanceSmall" />
                        </LinearLayout>
                        <LinearLayout
                            xmlns:android="http://schemas.android.com/apk/res/android"
                            android:layout_width="fill_parent"
                            android:layout_height="1dp"
                            android:background="#CC0000"
                            android:layout_marginTop="7dp" />
                        <LinearLayout
                            xmlns:android="http://schemas.android.com/apk/res/android"
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content">
                            <LinearLayout
                                xmlns:android="http://schemas.android.com/apk/res/android"
                                android:layout_width="fill_parent"
                                android:layout_marginTop="10dp"
                                android:layout_height="1dp"
                                android:background="#CC0000" />
                        </LinearLayout>
                    </LinearLayout>
                </FrameLayout>
            </LinearLayout>
            <LinearLayout
                xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:background="#F5F5F5">
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Više o"
                    android:layout_marginTop="5dp"
                    android:layout_marginLeft="5dp"
                    android:textColor="#333333"
                    android:textStyle="bold"
                    android:textSize="25dp"
                    android:textAppearance="?android:attr/textAppearanceMedium" />
                <LinearLayout
                    xmlns:android="http://schemas.android.com/apk/res/android"
                    android:layout_width="fill_parent"
                    android:layout_marginTop="5dp"
                    android:layout_height="1dp"
                    android:layout_marginLeft="5dp"
                    android:layout_marginRight="5dp"
                    android:background="#333333" />
                <TextView
                    android:id="@+id/textView1"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:layout_marginLeft="5dp"
                    android:text=" dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamcodolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamcodolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamcodolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamcodolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamcodolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamcodolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamcodolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco "
                    android:textColor="#666666"
                    android:textAppearance="?android:attr/textAppearanceSmall" />
            </LinearLayout>
            </LinearLayout>
   </ScrollView> 
            <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">



        <LinearLayout
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="2dp"
            android:background="#CC0000" />
        <LinearLayout
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="40dp"
            android:background="#4D000000"
            android:orientation="vertical" >
        <LinearLayout
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingRight="4dp"
            android:background="#CC0000"
            android:orientation="vertical" >
            <TextView
                android:id="@+id/textView2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="AKTUALNO"
                android:textSize="10dp"
                android:layout_marginLeft="4dp"
                android:textStyle="bold"
                android:textColor="#FFFFFF"
                android:textAppearance="?android:attr/textAppearanceSmall" />
        </LinearLayout>
            <TextView 
            android:id="@+id/scroller"
            android:singleLine="true"
            android:ellipsize="marquee"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:marqueeRepeatLimit ="marquee_forever"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:textColor="#FFFFFF"
            android:text="09:50 Lorem ipsum dolor sit amet, consectetur adipisicing elit | 09:59 Lorem ipsum dolor sit amet, consectetur adipisicing elit | 10:10 Lorem ipsum dolor sit amet, consectetur adipisicing elit | 10:20 Lorem ipsum dolor sit amet, consectetur adipisicing elit | 10:34 Lorem ipsum dolor sit amet, consectetur adipisicing elit"
            android:layout_marginLeft="4dp"
            android:layout_marginTop="0dp"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            />

    </LinearLayout>
    </LinearLayout>

</LinearLayout>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:44:32+00:00Added an answer on June 11, 2026 at 12:44 am

    You should use a layout_weight for the ScrollView so that it does not take all the remaining space:

        <ScrollView
        android:layout_width="fill_parent"
        android:layout_height="0dp"
        android:layout_weight="1">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have android app in which one layout contains Linearlayout , ScrollView , TextView
I currently have a 2 column site layout, with a footer/header, a fixed width
I have a layout which contains a ScrollView which contains various components including an
I have a Tab that has a custom layout which contains a TextView .
I have a div which contains multi-columns layout and when I click on a
I have ScrollView which contains 10 buttons. When a activity is launched only first
I have a ListView, in which i have added a header. the header contains,
I have a layout which contains three 3 scatter views. I am looking to
I have a linear layout which contains an imageview and another linear layout which
I have an HorizontalScrollView which contains a RelativeLayout . This layout is empty in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.