android - Why are the 9 patch not working at all in my app? -


i trying use 9 patch pictures in app.

the image quite clear , work pretty in graphic tool provided sdk:

picture this:

enter image description here

and tool seems work fine:

enter image description here

unfortunately, such simple layout, rendering bad on device , 9 patch not work @ all:

<textview     android:id="@+id/platenumber"     android:background="@drawable/plate_fr"     android:layout_width="320dip"     android:layout_height="wrap_content" /> 

any idea on doing wrong?

enter image description here

edit:

my picture named *.9.png

enter image description here

the black lines have totally black(rgb:#000000) , transparent zone around black lines totally transparent.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -