9 patch image incorrectly streeched in xhdpi density
问题 I have problems with a 9 patch image when displayed in XHDPI. It seems as there were a bug in Android because when displayed in HDPI is displayed correctly: but when displayed in XHDPI it makes a very strange effect (look at the middle of the tab that is semitransparent: It's very strange and I can't see why it'sworking this way when in XHDPI. Basically de 9 patch is a one line gradient with some transparent margin needed for the viewpager indicator: 回答1: I assume your image is saved under