Hi all, I am working on Android projects.
According to my requirements all the background images are coming from the server. So I am downloading some nine patch images into the cache memory as extention with .9.png When I am trying to apply the image is not splitting according to the screen. instead it displaying the black colored border lines . I am using the following code to apply. layout.setBackgroundDrawable(BitmapDrawable.createFromPath((new File(getCacheDir(), "hdpi_listheadbg.9.png")).getAbsolutePath())); For the above code image is applying with borders of nine patch image. I have also tried with the following code like layout.setBackgroundDrawable(NinepatchDrawable.createFromPath((new File(getCacheDir(), "hdpi_listbg.9.png")).getAbsolutePath())); then its not displaying any image as bacground . can any one explain me the situation .that how to apply the dowloaded ninepatch image from a url as background to a view. thanks in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en