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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:01:09+00:00 2026-05-23T07:01:09+00:00

Hopefully someone can help with this RelativeLayout issue I’m having. If I remove the

  • 0

Hopefully someone can help with this RelativeLayout issue I’m having. If I remove the last ImageView from this layout the layout height is only as tall as the tallest widget (in this case it’s the first ImageView). but as soon as I put the last Imageview back the layout extends to the button of the screen even pushing other layouts out of its way. I’m pretty sure its the layout_alignParentbottom attribute in the ImageView that is causing this to happen. I’m just not sure why the layout is behaving like this.

My goal is to have the RelativeLayout height only as big as the biggest widget (which is the first ImageView) but I also want the last ImageView to be align at the button of the layout. Any ideas? Thanks!

< RelativeLayout
    android:id="@+id/gallerylayout" 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="#ffffff" >

    <ImageView 
        android:id="@+id/image_cat" 
        android:src="@drawable/img_categories_bill" 
        android:layout_alignParentRight="true"
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:layout_gravity="right"
    />

    <TextView 
        android:id="@+id/title_cat" 
        android:layout_width="200dip"
        android:layout_height="wrap_content"
        android:text="...some text"
        android:layout_alignTop="@id/image_cat"
        android:textColor="#000000"
        android:paddingLeft="5dp" 
        android:paddingTop="3dp"
        /> 

    <TextView 
        android:id="@+id/description_cat" 
        android:layout_width="210dip"
        android:layout_height="wrap_content"
        android:text="...some text"
        android:layout_alignParentLeft="true"
        android:layout_below="@id/title_cat"
        android:textColor="#000000"
        android:paddingLeft="5dp" 
        android:textSize="10px"
        />

    <ImageView 
        android:id="@+id/positionImage1_cat" 
        android:src="@drawable/img_current" 
        android:layout_alignParentLeft="true"
        android:layout_alignParentBottom="true"
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:paddingLeft="5dp" 
        android:paddingBottom="3dp"
    />      
< /RelativeLayout>  

this is the solution I came up with which works. I’ve added android:layout_alignBottom=”@id/image_cat” to the bottom ImageView.

<ImageView 
    android:id="@+id/positionImage1_cat" 
    android:src="@drawable/img_current" 
    android:layout_alignParentLeft="true"
    android:layout_alignBottom="@id/image_cat"
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:paddingLeft="5dp" 
    android:paddingBottom="3dp"
/>
  • 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-23T07:01:10+00:00Added an answer on May 23, 2026 at 7:01 am

    this is the solution I came up with.

    < ImageView     
    android:id="@+id/positionImage1_cat"     
    android:src="@drawable/img_current"     
    android:layout_alignParentLeft="true"    
    android:layout_alignBottom="@id/image_cat"    
    android:layout_width="wrap_content"     
    android:layout_height="wrap_content"     
    android:paddingLeft="5dp"     
    android:paddingBottom="3dp"
    />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, this is bit of an obscure question, but hopefully someone can help me
Hopefully someone can shed a little light on an issue that I'm currently having
Slightly strange question, but hopefully someone can help. In essence, if the time was
hopefully someone can help me out, I've been struggling for a couple days. Basically
I have a weird date rounding problem that hopefully someone can solve. My client
Hopefully, this will be an easy answer for someone with Javascript time behind them...
Hopefully someone else out there is familiar with this, I'm trying to custom-script my
Hopefully, I can get answers for each database server. For an outline of how
Hopefully this will not spark a religious war... We have a web based app
Hopefully I haven't misunderstood the meaning of duck typing, but from what I've read,

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.