Изменить размер растрового изображения на основе устройства Android Studio [закрыто]Android

Форум для тех, кто программирует под Android
Anonymous
Изменить размер растрового изображения на основе устройства Android Studio [закрыто]

Сообщение Anonymous »


In android studio the return value of this function BitmapFactory.decodeResource(getResources(), R.drawable.basictiles) changes based on device size.

as and example

Pixel:
  • size = 1.792.000
  • height, width = 1120,400

SM-G900F
  • size = 2.580.480
  • height, width = 1344,480

I'm trying to find a way to get the same image size for every device/resolution.


Источник: https://stackoverflow.com/questions/650 ... oid-studio

Вернуться в «Android»