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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:11:08+00:00 2026-05-31T15:11:08+00:00

I implemented the following TextView in a RelativeView: <TextView android:id=@+id/textView1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:layout_alignParentTop=true

  • 0

I implemented the following TextView in a RelativeView:

<TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:background="@drawable/bg"/>

The problem is that the size will be set dynamically to 15% of the screen while the application is running. But when I do this the background ressource doesn’t get the size of the TextView. It has the original size of 150x150 px. What can I do to avoid this?

(I don’t want to take a smaller ressource because it doesn’t look well then)

  • 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-31T15:11:09+00:00Added an answer on May 31, 2026 at 3:11 pm

    Try using another scaleType, for example android:scaleType="fitXY".

    Also you can try making a nine-patch image. To do this, go to your Android SDK folder – tools – draw9patch application. Then you will have options to open your image and then save it as nine-patch image. Reference it as usual in your layout.

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

Sidebar

Related Questions

I have the following problem: I implemented a managed mobile application for Windows Mobile
I have a problem while following thenewboston Android tut's So the first problem is
I am searching about drawing bordered text on UIView. Implemented following method : -
I have implemented the following set up (after being requested): slideshow of images changing,
Say I need some very special multiplication operator. It may be implemented in following
I want to log my log strings to a file. I implemented the following
How is the following code implemented in Perl? sub add_item : Local { my
The following code is implemented in Page_Load event to show SaveFileDialog to the user
How would the following scenario best be implemented: There is a standardized user interface
How can the following function be implemented in various languages? Calculate the (x,y) point

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.