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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:09:29+00:00 2026-06-18T06:09:29+00:00

Depending on the device, my 9patch is acting differently. Ideally, it looks like this:

  • 0

Depending on the device, my 9patch is acting differently. Ideally, it looks like this:

good matrix

Which is the result I get on a Nexus 4. However, on a Nexus 7 I’m instead getting this:

bad matrix

It’s stretching properly, but there’s a shadow over what should be transparent. draw9patch.bat says there are no bad patches, and stretches correctly. The two devices are different resolutions (xhdpi and hdpi), but I made sure to include the same 9patch in both folders (drawable-xhdpi and drawable-hdpi).

matrix 9patch

  • 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-18T06:09:31+00:00Added an answer on June 18, 2026 at 6:09 am

    I used to have problems with 9patch when setting just un pixel in any of the four sides.

    I see that in your 9patch you are only using one pixel to draw some of the lines that define the stretchable patches and content area. Try using more than one pixel in top, left and right sides of your 9patch.

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

Sidebar

Related Questions

I am using this code to adapt my storyboard depending on device (iphone 5
Depending on how I map my linq queries to my domain objects, I get
This is somehow subjective depending on the target translation language, but bear with me
I've received Mixed responses on this depending what walk-through I read, I've defined a
I have a UIScrollView which contains a selection of different components. Depending whether the
I am attempting to get the string representation of an Android device's current WiFi
I've seen there are many different themes for the Android, depending on the device.
I'm trying to show different orientation depending on device. On iPhone I want to
Below I have a nested if statement which loads a certain CSS file depending
I have to adjust my label text size depending of the device (iPad, iPhone)

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.