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

  • Home
  • SEARCH
  • 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 6086531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:45:59+00:00 2026-05-23T11:45:59+00:00

I am trying to put in an ad but once the ad loads up,

  • 0

I am trying to put in an ad but once the ad loads up, everything else in the program goes away leaving nothing but the ad.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/linearLayout" android:layout_width="fill_parent"            android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads">
          <com.google.ads.AdView 
        android:id="@+id/adView" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"
        ads:adUnitId="a14ddfjakd;fs;jds;jf4bd"
        ads:adSize="BANNER"
        ads:loadAdOnCreate="true"/>  

    <ScrollView android:id="@+id/scrollView1" android:layout_width="fill_parent" android:layout_height="fill_parent">
        <LinearLayout android:id="@+id/linearLayout2" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <ImageView android:src="@drawable/item" android:layout_width="fill_parent" android:layout_gravity="center" android:layout_height="wrap_content" android:id="@+id/imageView1" android:scaleType="center"></ImageView>
        </LinearLayout>

    </ScrollView>

</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-05-23T11:45:59+00:00Added an answer on May 23, 2026 at 11:45 am

    Your linearlayouts height is set to fill_parent and that causes a problem since it’s parent, your scrollview, is also set to height:fill_parent.

    Try this:

    <ScrollView android:id="@+id/scrollView1" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <LinearLayout android:id="@+id/linearLayout2" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <ImageView android:src="@drawable/item" android:layout_width="fill_parent" android:layout_gravity="center" android:layout_height="wrap_content" android:id="@+id/imageView1" android:scaleType="center"></ImageView>
            </LinearLayout>
    
        </ScrollView>
    
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to put together a Java Webstart app, but don't want it to
I'm trying to put this data type in a Haskell Set, but I don't
I'm trying to put some sites i crawled into a shelve, but the shelve
Basically I'm Trying to put out on the Textbox inside the Shared Function, But
I am trying to put CASE Statement in Where clause, but I am getting
I'm trying to send a byte[] (using PUT) with Restlet but I can't find
Hi I'm trying to run a calculation but I can't seem to put it
I'm trying to set up log4net but I cannot make it work. I've put
Possible Duplicate: Android AdMobs problem. I am trying to put in an ad but
I'm trying to write a Schema for a xml similar to this <?xml version=1.0

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.