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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:28:06+00:00 2026-05-23T14:28:06+00:00

Specifically I’m trying to get the RelativeLayout with the id bottomStuff to float down

  • 0

Specifically I’m trying to get the RelativeLayout with the id bottomStuff to float down towards the bottom. I tried setting the gravity setting to bottom, which has been suggested from other SO posts, but it still sticks all the way at the top, why is this?

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/relativeLayout1" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:gravity="center">

<TextView android:id="@+id/textView1" android:textAppearance="?android:attr/textAppearanceLarge"
    android:layout_alignParentRight="true" android:layout_weight="1"
    android:layout_width="fill_parent" android:layout_height="wrap_content"
    android:text="@string/currentAlarms" android:gravity="center"
    android:layout_alignParentTop="true">
</TextView>

<ScrollView android:id="@+id/scroll" android:layout_width="fill_parent"
    android:layout_below="@+id/textView1" android:layout_centerVertical="true"
    android:gravity="center" android:layout_height="wrap_content"
    android:layout_marginBottom="150px">

    <LinearLayout android:layout_width="wrap_content"
        android:id="@+id/alarms" android:orientation="vertical"
        android:gravity="center" android:layout_centerVertical="true"
        android:layout_height="wrap_content">
    </LinearLayout>
</ScrollView>

<RelativeLayout android:id="@+id/bottomStuff"
android:layout_height="wrap_content" android:layout_width="fill_parent"
    android:layout_alignParentBottom="true"
    android:layout_centerHorizontal="true" android:layout_marginBottom="12dp"
    android:gravity="bottom">

<com.google.ads.AdView android:id="@+id/adView"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     ads:adUnitId="a14e1a859cbb3fb"
                     ads:adSize="BANNER"
                     ads:loadAdOnCreate="true"/>

        <LinearLayout android:id="@+id/BLinearLayout"
        android:layout_height="wrap_content" android:layout_width="fill_parent"
        android:layout_below="@+id/adView"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:gravity="bottom">

        <Button android:layout_height="wrap_content" android:text="@string/addAlarm"
            android:id="@+id/button1" android:layout_width="0px"
            android:layout_weight="1" android:drawableTop="@drawable/plus"
            android:onClick="addAlarm">
        </Button>
        <Button android:layout_width="0px" android:layout_height="wrap_content"
            android:id="@+id/button2" android:layout_centerVertical="true"
            android:layout_alignParentRight="true" android:layout_weight="1"
            android:text="@string/settings" android:drawableTop="@drawable/preferences">
        </Button>

    </LinearLayout>
</RelativeLayout>

</RelativeLayout>

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-05-23T14:28:06+00:00Added an answer on May 23, 2026 at 2:28 pm

    In your LinearLayout with the Buttons, remove the layout_alignParentBottom:

    <LinearLayout android:id="@+id/BLinearLayout"
            android:layout_height="wrap_content" android:layout_width="fill_parent"
            android:layout_below="@+id/adView"
            android:layout_centerHorizontal="true"
            android:layout_gravity="bottom">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Specifically how can I: Show a button which will let the user browse through
Specifically, I am always hitting Ctrl-A instead of Ctrl-S which is really annoying because
Specifically curious if IIS 5.1 has a 64 bit version, but I'm guessing only
Specifically, I'm trying to figure out if it's possible to generate SQL that does
Specifically, I'm wondering which of these I should write: { shared_ptr<GuiContextMenu> subMenu = items[j].subMenu.lock();
Specifically my middleware is interested to differentiate between a GET request on: /admin/app/model/? /admin/app/model/
Specifically the simple subgrid, not grid as subgrid. I've tried a variety of methods,
Specifically, how can I pass the static method Request.IsAjaxRequest()? I get the exception 'System.ArgumentNullException'
Specifically, how do you get the image subview from a uitableview cell? My table
Specifically, I wish to get the date format in a pure (ISO) format: YYYY-MM-DD

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.