Background Image gets blurry when loaded into LinearLayout - Android -


i have background image 4 diff dpi placed in different folders.

  • drawable-xxhdpi contains 1630x1052
  • drawable-xhdpi contains 970x609
  • drawable-hdpi contains 603x402
  • drawable-mhdpi contains 450x290

and here full resolution image: original image

but when view image in android application using mobile or tablet becomes blurry shown below.

background image in android

i loading image using picasso:

picasso.with(drawfigure.this).load(r.drawable.back) .memorypolicy(memorypolicy.no_cache)                  .networkpolicy(networkpolicy.no_cache).into(mcustomlayout); 

please correct me if finds mistake. else, there any other way show perfect image. regards!

try following

                       ldpi     mdpi     hdpi    xhdpi    xxhdpi       xxxhdpi launcher , home      36*36    48*48   72*72    96*96    144*144     192*192 toolbar , tab        24*24    32*32   48*48    64*64    96*96       128*128 notification           18*18    24*24   36*36    48*48    72*72       96*96  background             240*320  320*480 480*800  768*1280  1080 *1920  1440*2560  

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -