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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:07:34+00:00 2026-06-17T08:07:34+00:00

so Im trying out the 9-patch images. I started out with a PNG-file where

  • 0

so Im trying out the 9-patch images. I started out with a PNG-file where I have a semi-transparent square with rounded corners:

enter image description here

Then, I created the 9-patch, like this (note the little dot on top and to the left):

enter image description here

I thought that was enough to handle this, but when adding this 9-patch to Eclipse, I get weird results.

Result nbr 1

Based on this XML:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/linearLayout6"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/taxibg3"
    android:orientation="vertical" >

    <ImageView
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:background="@drawable/login_square" />
</LinearLayout>

I get this result:

enter image description here

Result nbr 2

Based on this XML:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/linearLayout6"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/taxibg3"
    android:orientation="vertical" >

    <ImageView
        android:layout_width="300dp"
        android:layout_height="158dp"
        android:background="@drawable/login_square" />

</LinearLayout>

I get this result:

enter image description here

I have also tried to make the “9-patch-lines” on the top and left longer, but that also gives weird artefacts.

Any ideas?

— EDIT —

I also tried with this 9-patch (screen-shot from 9patch-tool):

enter image description here

which gives this bad result (note the black lines):

enter image description here

—- EDIT 2 —-

Leonidos told me that the 9-patch was too big, and that they cannot decrease in size. So I tried that out, with equally bad results.

This is the 9-patch (download the file here)

enter image description here

and this is how it looks (notice the black lines):

enter image description here

— EDIT 3 —

I took a look at “show bad patches” in the pathtoo, and this is what is shows:

enter image description here

But it doesnt really matter. If I change it so it looks like this:

enter image description here

I still get the black stripes!

Oh why oh why!? =)

  • 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-17T08:07:34+00:00Added an answer on June 17, 2026 at 8:07 am

    Make it small as possible. 9-patch cant shrink they can stretch. Fill right and bottom border with black color. Edit 9-patch borders with draw9patch tool to prevent errors. Your 9-patch should look similar to this one.

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

Sidebar

Related Questions

I'm trying to have a user upload a file and then my function will
I'm trying out zsh as an alternative to bash, and I seem to have
I'm trying to figure out how and why my images will only load in
I have been trying to figure out what is going wrong when I try
Im stuck, been trying to figure this out for 2 hours now. I have
I currently trying to carry out the same operation (OCR) on images in android,
I am trying to upload various images into a dynamically created folder on my
I'm trying to put different images (.jpg , .png) dynamically into a ListView from
I am trying to extract Thumbnail images from a Video file, the use case
I'm new to Django (and Python) and I have been trying to work out

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.