I used a linear gradient image for the background, and in Photoshop (and everything else) it looked nice and smooth, but when I displayed it in the emulator, it was grouped! Even worse, it was connected to my real phone - Droid Incredible. I run 2.2 both in emulation and on the phone.
Here the sample is the original on the left, the Android version on the right: http://pnart.com/temp/AndroidMach.jpg
It looks like Android setting a bit depth limit. What is happening and how to fix it?
Thanks in advance!
Google. , , , res/raw/ , . , .
, , , "drawable", AAPT, , , , . PNG , APK. - ( ) , .
: (: : w: 320px h: 480px 200 dpi )
,
, , , . - , "" . , , ImageView ( - ), , , .
, , GradientDrawable
, , . 8-8-8 R-G-B, 5-6-5. , /, , , .
, №1: .
, , , !
1) , : , :
setContentView(R.layout.screen_dashboard); findViewById(R.id.layout).getBackground().setDither(true);
2) : 5-6-5 png. . 5-6-5 , png , png.
, Shape Drawable, , ( , ) .
Source: https://habr.com/ru/post/1773526/More articles:How to determine the type of disk? - c ++Смотрите другое приложение, и если он закрывает мое приложение (без опроса) С# - c#override default filtering behavior in Django templates - pythonReplace backslash with slash in Python - pythonAccessing Scala instance variables from Java in Eclipse - javaКакую структуру Db следует использовать с 2 одинаковыми таблицами комментариев для двух разных родительских таблиц - mysqlWindows Phone 7 and MP4 - c #Is CSS dependent on ActiveX? - cssHow to get PHP to handle a number like uint - c #2 (3) questions about T4 templates, getting the name of the processed primary file and the possibility of completing processing? - .netAll Articles