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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:34:43+00:00 2026-06-06T18:34:43+00:00

I have an app that I am putting together and I have a background

  • 0

I have an app that I am putting together and I have a background on it. There is a header on top and a ListView in the middle. When I have a list in the middle that isn’t at least as big as the screen it just shows gray not the background of the parent layout. The weird thing is that this doesn’t happen on my older phone, the background fills the whole screen even if the list doesn’t. Here is the xml:

<?xml version="1.0" encoding="utf-8"?>
<!-- This is the xml for HomeActivity, more information in HomeActivity.java -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/common_aboutLayout"
    android:orientation="vertical" 
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/bg">

    <!-- This is the header on the top of the home screen -->
    <LinearLayout android:id="@+id/dynamicBanner"
        android:layout_height="wrap_content" 
        android:gravity="center"
        android:background="@drawable/header" 
        android:layout_width="fill_parent">

        <!-- This is the temp pop-up on start -->
        <TextView android:text="@+id/TextView01"
            android:id="@+id/titleText" 
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical|center_horizontal"
            android:textColor="#FFFFFF" 
            android:visibility="invisible"
            android:textStyle="bold" 
            android:typeface="sans" 
            android:ellipsize="end"
            android:textSize="18sp" 
            android:gravity="center_vertical|center_horizontal">
        </TextView>
    </LinearLayout>

    <!-- This is the layout of the list of ringtones. -->
    <ListView android:id="@+id/homeListView" 
        android:layout_width="fill_parent" 
        android:layout_height="0dp"
        android:layout_weight="1">
    </ListView>

    <LinearLayout android:id="@+id/adLayout"
        android:layout_width="fill_parent" 
        android:layout_height="0dp">
        <com.admob.android.ads.AdView android:id="@+id/ad"
            admob:textColor="#FFFFFF" 
            admob:keywords="Android application"
            android:layout_width="fill_parent" 
            android:layout_gravity="bottom|center"
            admob:backgroundColor="#666666" 
            admob:refreshInterval="30"
            android:layout_height="0dp" />
    </LinearLayout>
</LinearLayout>

The TextView is just a temp thing when the window first opens.

Just looking for some help, Thanks.

  • 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-06T18:34:44+00:00Added an answer on June 6, 2026 at 6:34 pm

    put All views in RelativeLayout.then put this admob layout and add a tag to plcae this to bottom of layout

    like
            android:layout_alignParentBottom="true"    
    
    
    
    
    
    <LinearLayout android:id="@+id/adLayout"
        android:layout_width="fill_parent" 
        android:layout_height="0dp">
        <com.admob.android.ads.AdView android:id="@+id/ad"
            admob:textColor="#FFFFFF" 
            admob:keywords="Android application"
            android:layout_width="fill_parent" 
            android:layout_gravity="bottom|center"
            admob:backgroundColor="#666666" 
            admob:refreshInterval="30"
            android:layout_height="0dp" />
    </LinearLayout>
    
    
     and then Header part inside the relative layout
    

    android:layout_alignParentTop=”true”

    and the put the ListView and

     android:layout_above="@+id/adLayout"
     android:layout_below=HEADERVIEW
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little POC web app that I'm putting together, and one of
I'm putting together an app that interfaces with Stack API and have been following
I am thinking of putting together an app that will be pulling data from
I am just putting the finishing touches to an iPhone app that I have
I'm basically putting together an app that does a super simple question => answer
So I am putting together a very simple app and have got a bit
I am in the process of putting together a little Android app. I have
I am putting together a small app that has a leaderboard concept in it.
I am putting together an application that connects to a vfp database. I have
I'm putting together an app in CakePHP that contains both Posts and Attachments 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.