ninepatch

Android NinePatch .png file format?

Android NinePatch images seem to be standard .png files with extra information. Is there a spec for the format anywhere, as I'd like to be able to implement this on other platforms? ...

Android ninepatch image error in eclipse 3.5.2

Hello All, I'm using Eclipse 3.5.2 on win7 with latest sdk update. Every time i create ninepatch image and copy it into drawable folders, the project becomes error, seems that the file cause error and not supported. I use photoshop to create PNG-24 image then edit it using draw9patch tool. Here is my draw9patch screenshoot : http://lon...

android:background hides my text ...

I have a widget layout as follow : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/widget_bg"> <TextView android:layout_height="fill_parent" androi...

Android / 9-patch PNG: What, if I need smth like a 11-patch PNG?

In Draw 9-patch, everything looks fine. However, my SDK says the 9-patch png is malformed. Because I have something like an 11-patch png. Because I don't want the little grabbing area to be scaled. How to get it working? The screenshot describes everything: Error Meassage in Console: ERROR: 9-patch image /res/drawable-hdpi/top_comple...

[Android] How to cover a 9-PATCH-PNG entirely?

I try to implement a hover effect (effect when button is pressed) through putting a semi transparent PNG file on top of the button background and the button icon. Unfortunatly the button background file is a 9-PATCH-PNG which causes some trouble here: It "swallows" everything on top of its layer and doesnt allow to cover the stretchable ...

To create Nine patch drawable in Android?

I want to set a specific background image for all my buttons. So, I changed my PNG file into a Ninepatch drawable using the "draw9patch" tool(by specifying the line of strecth). Then, I applied this as background to my button using "myBtn.setBackgroundResource(R.drawable.new_png);" Now, the background appears f...