in my android app I want to achieve this kind of effect

Thinking about different resolutions and densities I decided to create a nine-patch png file:

When I stretch it it looks quite fine:

But in the android simulator it is blurred

As you can see the quality is bad. Why? What do I have to do to achieve the quality from the first image?