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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:01:09+00:00 2026-06-15T15:01:09+00:00

I have a Nexus 7 with Android 4.2.1 and I noticed in my app

  • 0

I have a Nexus 7 with Android 4.2.1 and I noticed in my app the background image I am using for some linear layouts is drawn incorrectly. With other devices with older versions of the Android OS the 9-patch background is drawn correctly but with this device the border line is stretched when it should not be stretched.

Correct (Evo 4G v2.3.5):
https://i.stack.imgur.com/xhKLt.png

Incorrect (N7 v4.2.1):
https://i.stack.imgur.com/v70w1.png

Any idea what is causing this? If not, is there any other way to get the black borders on these views without using 9-patch images?

edit

9-patch file:
https://i.stack.imgur.com/uIs74.png

9-patch in editor tool:
https://i.stack.imgur.com/rJjUL.png

layout xml section using it (leftbordergraybkg):

<LinearLayout
 android:id="@+id/Measurements"
 android:layout_width="0px"
 android:layout_height="match_parent"
 android:layout_weight="50"
 android:background="@drawable/leftbordergraybkg"
 android:orientation="vertical">
  • 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-15T15:01:10+00:00Added an answer on June 15, 2026 at 3:01 pm

    It’s because of black pixels showing scalable area are too close to image’s border. That’s why in higher pixel density 9-patch file scales up and scale piece of border.

    See example which will not have such problem.

    enter image description here

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

Sidebar

Related Questions

I understand most Android devices have a 16mb limit (24mb on Nexus One) on
I am using Galaxy nexus with Jelly bean and i have noticed that logcat
My goal is to have an Android phone (Samsung Galaxy Nexus) communicate with a
I have two devices. One is a HTC Nexus-One running 2.3.6 and another is
I am testing my app on a rooted Nexus S phone. I finally have
I will have to develop some android applications. Witch mobile phone is better for
i have an android app which spawns many native executables dinamically linked with libraries
I have a beta application, which runs successfully on three Android powered devices: Google
I am using android:inputType=textEmailAddress|textEmailSubject on some fields to prevent long lines from wrapping per
I have a Samsung Galaxy Nexus Android phone and for whatever reason the Facebook

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.