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 7767401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:40:03+00:00 2026-06-01T15:40:03+00:00

I have <.ImageView> enter code here s(icons) in my android layout xml file, which

  • 0

I have <.ImageView>enter code heres(icons) in my android layout xml file, which are encompassed by a <ScrollView>.

Eg.

<.ScrollView><br>
<.LinearLayout><br>
<.ImageView> ...<./ImageView><br>
<./LinearLayout><br>
<./ScrollView>

To this layout, i want to attach a fixed footer. Basically a small tab present on the bottom on the screen which stays even when I scroll to the all the way down or all the way to the top.

  • 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-01T15:40:05+00:00Added an answer on June 1, 2026 at 3:40 pm

    I tend to write up layouts like this with a LinearLayout as root element and weights on the children to dynamically allocate screen estate. It keeps the layout definition compact and doesn’t require defining extra ids.

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent" 
        android:orientation="vertical" >
    
        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="0dp" 
            android:layout_weight="1" >
    
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical" >
    
                <ImageView ... />
                <ImageView ... />
                ...
                <ImageView ... />
    
            </LinearLayout>
        </ScrollView>
    
        <!-- footer here -->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content" >
            ...
        </LinearLayout>
    </LinearLayout>
    

    Using a RelativeLayout as root element, with the ScrollView positioned ‘above’ the bottom-aligned footer, however, is probably slightly better in terms of performance, although I doubt it’ll make a noticable different in the case of a simple view hierarchy like this. The RelativeLayout approach does require assigning some ids (to at least the footer, I’d say).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an imageview in a layout called footer.xml which is actually added as
I have an ImageView in my android layout. And I would like to add
I have ImageView declared at xml: ... <ImageView android:id=@+id/image android:layout_width=wrap_content android:layout_height=wrap_content android:maxHeight=60dip android:maxWidth=60dip android:scaleType=centerCrop
When it comes android development and performance, if you have imageview then which one
I have imageView inside a relative layout. And when i create the activity i
I have a ImageView in my relative layout. How can I get all the
I have an imageview to which I have added certain custom subview as dots.
I have a layout issue. What I do is this: create TableLayout in xml
I have an ImageView from which I want to copy a piece of it
I have an ImageView with a source image set in the xml using the

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.