1. Are you ready for the Galaxy S20? Here is everything we know so far!

9-slice image problems

Discussion in 'Android Development' started by totally_insane, Feb 9, 2011.

  1. totally_insane

    Thread Starter

    As you see in the following image
    the 9-slice image isnt shown correctly.
    I've used there an image button and set the src attribute to that image:

    [​IMG]

    Any ideas what i could do to solve that? :D
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Hrethgir

    Hrethgir Android Expert

    I see a blue box inside a blue box with what looks like something covered up by a black marker. Other than that, I have no idea what you're asking. What, pray tell, is a 9-slice image?
     
  3. alostpacket

    alostpacket Over Macho Grande?

    Draw 9-patch | Android Developers

    I dont know how to solve your problem, but have you tried making sure you are using the right bitmap and it's named correctly ( ie "my_image.9.png") ? And make sure a similar named bitmap isnt in /res/drawable ( ie "my_image.png")?

    Then try drawing different stretch areas in the 9-patch tool?
     
Loading...

Share This Page

Loading...