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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:14:50+00:00 2026-05-15T10:14:50+00:00

![alt text][1]Hi folks i am using admob ads for my android applicaiton.in portrait mode

  • 0

![alt text][1]Hi folks

i am using admob ads for my android applicaiton.in portrait mode it fixed top of the screen when i changed to landscape mode.that add disply size of the portrait mode add size

how i get fill parent in landscape mode

+import com.admob.android.ads.AdManager; import com.admob.android.ads.AdView; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.view.Window; import android.view.ViewGroup.LayoutParams; import android.widget.LinearLayout;

public class narasimha extends Activity   {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.main);
        AdView adView = new AdView(this);
        adView.setVisibility(AdView.VISIBLE);
        adView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
        adView.setPrimaryTextColor(Color.BLACK);
        adView.setBackgroundColor(Color.WHITE);
        adView.setSecondaryTextColor(Color.LTGRAY);
        adView.setRequestInterval(20);
       AdManager.setTestDevices(new String[]{ AdManager.TEST_EMULATOR});
        ((LinearLayout)findViewById(R.id.ad)).addView(adView);

portrait mode [1]:
[url=http://www.freeimagehosting.net/][img]http://www.freeimagehosting.net/uploads/afd7c173cb.png[/img][/url]

landscape mode
[url=http://www.freeimagehosting.net/][img]http://www.freeimagehosting.net/uploads/1758519975.png[/img][/url]

how can resolve this problem

  • 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-15T10:14:51+00:00Added an answer on May 15, 2026 at 10:14 am

    I don’t think that will work because I think the ads are a fixed size. So your best bet is to probably just center the view in the layout.

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

Sidebar

Related Questions

alt text http://img252.imageshack.us/img252/643/snakesonadialog.png Hi folks, So I'm putting the finishing touches on an application
alt text http://img705.yfrog.com/img705/1337/layoutxt.jpg I already have this layout created using CSS, but its plagued
There is a table alt text that uses CSS (by using inherit in CSS)
alt text http://home.elka.pw.edu.pl/~pkolodzi/Capture.PNG I have created the IAdder interface with two methods: PassA and
alt text http://www.mattdell.com/hostedfiles/flexchartissue.bmp I am having an issue where the chart labels on my
alt text http://img195.imageshack.us/img195/7845/tabx.jpg i am opening tabs with click event on tree list view.
alt text http://img216.imageshack.us/img216/2288/problem11.png As given in the picture, I have an search bar in
alt text http://imgkk.com/i/Fmtd8B.jpg This is how they look in vista. They are glossier than
alt text http://i.msdn.microsoft.com/sdk15ce5.pubmethod(en-us,VS.90).gif method. alt text http://i.msdn.microsoft.com/sdk15ce5.CFW(en-us,VS.90).gif what does this mean? alt text http://i.msdn.microsoft.com/t69yczb0.static(en-us,VS.90).gif
alt text http://img502.imageshack.us/img502/7245/75088152.jpg There are two tables that I join them together, one of

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.