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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:35:48+00:00 2026-05-24T03:35:48+00:00

I currently have an imageview with an image. It looks perfect on my 2.7

  • 0

I currently have an imageview with an image. It looks perfect on my 2.7″ test screen, however, when I test it on my 4.3″ screen, the image is not where it should be. I am setting the height to have dp and I have my image file in hdpi, mdpi, and Ldpi folders. Am I doing something wrong? Or rather, is there some way to lock the place of the image so that it displays the same way in all phone sizes?
Thanks.

The imageview that is not adjusting to various screen sizes is the first imageview (id = sdrbg)
here’s my layout file:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/relativeLayout1" android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:orientation="vertical">
    <ImageView android:layout_width="wrap_content"
        android:layout_alignParentTop="true" android:id="@+id/sdrbg"
        android:background="@drawable/sdrmaingraphic" android:layout_height="289dp"></ImageView>

    <ImageView android:id="@+id/canvasBOM"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="false" android:layout_width="fill_parent"
        android:background="@drawable/canvas" android:layout_height="100dp">
    </ImageView>
    <Button android:layout_alignParentBottom="true"
        android:id="@+id/playpausebuttonBOM" android:background="@drawable/main_pause_button"
        android:layout_height="wrap_content" android:layout_width="wrap_content"
        android:layout_marginLeft="10dp"></Button>
    <Button android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:id="@+id/nextbuttonBOM"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true" android:background="@drawable/next_song_button"
        android:layout_marginRight="10dp"></Button>
    <TextView android:id="@+id/textView1" android:layout_height="wrap_content"
        android:layout_width="wrap_content" android:text="Best of May 2011"
        android:textSize="20dp" android:textStyle="bold"
        android:layout_centerHorizontal="true" android:layout_centerVertical="false"></TextView>
</RelativeLayout>
  • 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-24T03:35:48+00:00Added an answer on May 24, 2026 at 3:35 am

    Instead of specifying the height use wrap_content and RelativeLayout features to specify height. For example: android:layout_alignParentTop="true" android:layout_alignBottom="@id/playPauseButtomBOM" and android:layout_marginBottom="xxdp"

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

Sidebar

Related Questions

I currently have an activity that does not have an xml layout file. All
I currently have an imageView which I can drag around the screen using a
Currently have password protection on my main and sub directories, however I'd like to
I have an UIImageView which has an image. The initWithFrame:(CGRect)frame looks like this: #define
I have an image view that looks like a wheel. This view detects touch
I have an imageview, which uses matrix to scale/drag an image. Now I want
I currently have an image mask I want to use to mask a UIScrollView.
Currently I'm drawing a PNG image in my Android application like so: ImageView image
I currently have an ImageView which i am applying a scale animation to. This
Currently on a view I have a ImageView and A custom class that draws

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.