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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:57:30+00:00 2026-06-04T04:57:30+00:00

Provided utility looks bad, for example it does not allow to do Save As,

  • 0

Provided utility looks bad, for example it does not allow to do “Save As”, or to draw several button states with similar slicing.

Is it possible to draw 9.png in photoshop? I noticed, that generated png just contains black pixels in outer edge. Is this what is marking the slices?

What if black pixels present in two opposite edges, how does this work?

Are outer edges cut off when displayed on android?

  • 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-04T04:57:32+00:00Added an answer on June 4, 2026 at 4:57 am

    Yes, I do all of my nine patches in Photoshop. Here are the basic rules for creating a 9-patch:

    1. The outer 1px margin can contain only 100% black (RGB 0, 0, 0) or fully transparent.

    2. The black pixels for the top margin and left margin define the stretch points, and must be either a solid line, a single point, or two separate points. If two points are defined, it will stretch equally between the two.

    3. The black pixels for the bottom margin and right margin define the content area. These pixels must be one contiguous line.

    4. When saving, be sure to append the .9.png extension.

    Hope this helps. 🙂

    EDIT: And yes, those will not be displayed when used in your layouts, provided it’s properly formatted and you’ve saved it as a .9.png.

    enter image description here

    enter image description here

    Okay, so the top would be a simple nine patch for a spinner. the lines across and down in the second image show which rows/columns of pixels would be duplicated. The blue rectangle in the second image shows the area in which Android would allow content to be placed. So text, for example, would simply wrap to stay inside this rectangle.

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

Sidebar

Related Questions

I'm trying to adapt an example provided by Apple in order to programmatically draw
If you just have a utility template provided by SDK with a segmented controller
Is there any utility or plugin which provides cscope like functionality for C++. I
Provided the following ruby hash: { cat: { 1: 2, 2: 10, 3: 11,
I reviewed the answers provided to the GUI Programming APIs post and wondering if
I have been provided with a C++ DLL and associated header file in order
When the calendar control provided in the WPF toolkit (and included in .Net 4)
I was provided by an tracing API which was developed in house which directly
From the Jobeet tutorial provided in Symfony website, I found out that I can
What APIs are provided by Windows for CPU power management (I'm interested in CPU

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.