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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:32:12+00:00 2026-06-17T23:32:12+00:00

In my andriod app I have an image view and back and next button

  • 0

In my andriod app I have an image view and back and next button as shown below. It works fine. Now I want to draw an admob ad below the buttons or above the buttons but below the image. In any case I don’t want image to be cropped by ad or buttons.
Here is layout which have image and two buttons:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content" android:layout_height="wrap_content"
    android:orientation="vertical" 
    android:id="@+id/Linear1">



    <RelativeLayout android:id="@+id/relativeLayout1"

        android:layout_width="fill_parent" android:layout_height="fill_parent"
        android:orientation="vertical">

        <ImageView android:id="@+id/katha_image"
        android:layout_height="wrap_content" android:layout_width="wrap_content"
         android:layout_marginBottom="@dimen/menu_item_size"></ImageView>


        <LinearLayout android:layout_width="fill_parent"
            android:orientation="horizontal" android:layout_height="wrap_content"
            android:layout_alignParentBottom="true" android:layout_gravity="bottom|center">
            <Button android:id="@+id/Button_Back" android:layout_width="fill_parent"
                android:layout_height="wrap_content" android:layout_weight="50"
                android:layout_alignParentBottom="true"

                android:layout_alignParentLeft="true" android:text="@string/back"
                android:textSize="@dimen/button_size" android:minWidth="75px"></Button>
            <Button android:text="@string/next" android:textSize="@dimen/button_size"
                android:layout_width="fill_parent" android:layout_height="wrap_content"
                android:layout_weight="50" android:id="@+id/Button_Next"></Button>



        </LinearLayout>


    </RelativeLayout>



</LinearLayout>

Please suggest.

PC

  • 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-17T23:32:14+00:00Added an answer on June 17, 2026 at 11:32 pm

    You’ll want to use android:layout_above or android:layout_below with your elements in a RelativeLayout so that they don’t overlap.

    <com.google.ads.AdView xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
                           android:id="@+id/adView"
                           android:layout_width="fill_parent"
                           android:layout_height="wrap_content"
                           ads:adUnitId="MY_AD_UNIT_ID"
                           ads:adSize="BANNER"
                           ads:loadAdOnCreate="true"
                           android:layout_above="@id/linearLayout1"/>
    <!-- Assumes your LinearLayout with buttons have id "linearLayout1" -->
    

    Then add android:layout_above="@id/adView" on your ImageView to make it lay out above the ad.

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

Sidebar

Related Questions

in my app, i have large images, i display it in an image view
In my app i have a button that when click loads a new image
I have about 50 images with in a grid view within my Android app.
I want to capture image and save it in Image view in one of
I have 3 activities. 1st activity has a 'go right' image button. (to move
I have just integrated AdWhirl into my app. I have the AdWhirl view set
In my app i have a list view, in that i need to place
I have make an app in android in which an image is taken from
I have an app widget which displays some rss feeds.It contains a text view
In my app i have to set up a small image as background, to

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.