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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:18:26+00:00 2026-06-14T14:18:26+00:00

I have an Activity for which I obviously have a layout. The layout’s background

  • 0

I have an Activity for which I obviously have a layout. The layout’s background is an image and the TextView placement needs to be in a precise place. When I place the TextView in any layout, the position doesn’t change with the scaling of the background image as I expect.

How do I get the TextView to scale based on the size of the screen?

The simplest solution will be accepted.

bart speech bubble

  • 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-14T14:18:27+00:00Added an answer on June 14, 2026 at 2:18 pm

    Your question is a little vague, but assuming what you’re going for is ‘put the TextView over the speech bubble in the above image’, you may have a bit of work ahead of you. You could attempt to use margins and such to give it a precise placement over the speech image, but this will be quite tricky and will probably never work exactly like you want. Your simplest option would be to do the following

    1. Use Photoshop, Paint, or just about any editing program to cut out Bart and the speech bubble and save them as seperate images.
    2. Use a RelativeLayout with the background color set to black android:background="@android:color/black".
    3. Place an ImageView using the graphic of Bart, and set the following properties on it: android:layout_alignParentLeft="true", android:layout_alignParentBottom="true", and `android:id=”@id/img_bart”.
    4. Place a TextView, set the background to use the speech bubble image (android:background="@drawable/img_speech" or whatever you called the speech bubble image), set it to appear to the right of Bart android:layout_toRightOf="@id/img_bart", and either snap it to the top (android:layout_alignParentTop="true" – this may cause issues on tall screens though), or snap to the bottom offset by an appropriate amount through android:layout_alignParentBottom="true" and android:layout_marginBottom="150dp", modifying the 150 to get it to appear at the right height relative to Bart.

    I know it’s a fair bit of work, unfortunately Android layouts often are, especially in cases where you want to get different elements to stick together in appropriate ways, like speech bubbles.

    Another thing you could look at is AbsoluteLayout, which allows you to place child elements in exact locations – however this is strongly discouraged as it won’t scale well to different screen sizes, and the AbsoluteLayout class itself is deprecated and has been for a very long time.

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

Sidebar

Related Questions

I have an activity which needs to make two remote server calls. The first
i have a activity which extends ListActivity. The Layout contains some generic widget an
I have an activity which is going to switch around between several views, and
I have a activity which has a button and 2 autocomplete widget. for the
I have an Activity which shows a welcome message if started for the first
I have an activity which shows some List entries. When I click on a
I have an activity which uses two Loaders. Each of them returns different type
I have an activity which consists of a ListView . The problem is that
I have an Activity which uses a Fragment . I simply want to pass
Guys I have an activity which has a home button, when the button is

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.