Android ActionBar has border when using Nine-Patch background -


i'm using nine-patch png windowbackground android app. however, 1px border around actionbar. doesn't happen when use simple png.

to test this, i've created basic app using wizard:

  • android:minsdkversion="10"
  • android:targetsdkversion="17"
  • tested on galaxy nexus v.4.2.2

interestingly enough, xml layout preview in eclipse showing same border.

/res/values/styles.xml

<resources>      <!--         base application theme, dependent on api level. theme replaced         appbasetheme res/values-vxx/styles.xml on newer devices.     -->     <style name="appbasetheme" parent="android:theme.light">         <!--             theme customizations available in newer api levels can go in             res/values-vxx/styles.xml, while customizations related             backward-compatibility can go here.         -->     </style>      <!-- application theme. -->     <style name="apptheme" parent="appbasetheme">         <!-- customizations not specific particular api-level can go here. -->          <item name="android:windowbackground">@drawable/test4</item>     </style>  </resources> 

two screenshots comparing affect (no, isn't real background, 1 testing :-) can see, actionbar inset 1px way around.

added - i've tried manually created 9patch , 1 using google's draw9patch tool.

using 9-patch background using simple png background the 9-patch png


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -