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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:54:24+00:00 2026-05-20T01:54:24+00:00

The default screen of my app shows a ListView. When the user selects an

  • 0

The default screen of my app shows a ListView. When the user selects an entry a new Activity is displayed with a Title (TextView), some information gained from xml (WebView).

I want to place an Ad aligned to the bottom of this second Activity.

My layout currently is this:

<LinearLayout android:id="@+id/info" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" style="@style/info">    
    <TextView android:id="@+id/title" style="@style/title" />
    <WebView android:id="@+id/info" style="@style/info" />
</LinearLayout>

This works perfectly, but I can’t get the Ad to always be at the bottom.

I’ve tried RelativeLayout, but no matter what, I always get the same results!

If the HTML shown in the WebView is short enough for the AdView to be displayed (but not at bottom, underneath WebView) or its too long and the AdView is not shown at all!

I want the AdView always visible always, even if the WebView scrolls!

Hope this makes sense!

Neil

PS: I’ll continue to look for answers and update if I find one….

  • 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-05-20T01:54:25+00:00Added an answer on May 20, 2026 at 1:54 am

    Figured out a way to solve this, but is it the best way??

    This is how I did it:

    <LinearLayout android:id="@+id/linearlayout" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:neildeadman="http://schemas.android.com/apk/res/com.neildeadman.android" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" style="@style/Info">
        <LinearLayout android:id="@+id/info" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" style="@style/info">
            <TextView android:id="@+id/title" style="@style/title" />
            <WebView android:id="@+id/info" style="@style/info" />
        </LinearLayout>
    </LinearLayout>
    

    The “layout_weight” attributes allowed me to force the inner LinearLayout to fill the remaining gap left by the add, which then contained my layout from above!

    Works lovely….

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

Sidebar

Related Questions

Example: My Default.png image shows the start screen of my app with an empty
I have a screen with two RadioButtonField objects. By default, the first RadioButtonField shows
I have a Default.png for my splash screen image at my iphone app. After
Could I create an iPhone app that replaces/modifies the default clock screen saver and
My app has has an option to show screen-B instead of screen-A (default main)
when setting a default image for bookmarks on the home screen for iOS devices
I have a really standard splash screen, just a simple Default.png, but for whatever
I'm trying to create a splash screen for MonoTouch, that fades from the Default.png
I have a google app engine app that has been running for some time,
I'm working on an app that shows a couple of places on the map

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.