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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:08:20+00:00 2026-06-10T19:08:20+00:00

I am trying to create a nine patch drawable . I created an image

  • 0

I am trying to create a nine patch drawable. I created an image with a white border and then opened it in Draw9patch software as explained here:

  • http://developer.android.com/tools/help/draw9patch.html
  • http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch

I don’t understand what I am supposed to do. I drew some kind of black border around it, and it gives me errors when I try to us it in my app. I have tried to draw a red border around it and it also gives the same errors that the nine patch is not valid.

Sometimes the area of the nine patch shows in pink and sometimes in green. I don’t understand what it means and nothing is explained anywhere.

  1. If the nine patch is not valid how can I know (before compiling the
    app of course!)?
  2. Do you know of any good tutorial for nine patch, explaining more then only how to open nine patch software?
  • 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-10T19:08:21+00:00Added an answer on June 10, 2026 at 7:08 pm

    There is nothing complicated in 9Patch image let me explain you via example(image)
    enter image description here

    Top and Left parts are stretchable area, this part will increase when your screen size increase

    You can see pink dotted box in the 1st part of image that show this part will resize.

    Bottom and Right parts are for content padding, your content will reside in this part only(reserve your content area).

    You can see pink dotted box in the 2st part of image that show this part is for your content(string or etc).

    General standard to be follow given in below image.

    enter image description here

    Note: make 9patch of those image which having uniform color and shape(not complex curve).

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

Sidebar

Related Questions

I trying create empty white image with php, this s my code $bg =
I am trying to create a custom-styled seekbar. I have two nine-patch images one
Ok so I am trying create a login script, here I am using PHP5
Trying to create a background-image slideshow and am getting this error... This is the
I am trying create the image enlargement effect when you hover your mouse over
I'm trying create a log specifically for logging user account activity. I created this
I am trying create system in which I can login from php and then
I'm trying create a composite component to use across my projects, so, I've created
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
I am trying create a delegate representation of constructor by emitting a Dynamic Method,

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.