android


Can I keep fix the same resolution of the same image when the devices have different densities?


I asked a question yesterday.
Why do resolutions become smaller after a image file be read by program?
Very thanks the people helped me.
They let me know that if I use the devices having different densities, the resolutions of the same image may be changed.
For example:
I have a image with resolution 1440x2560 and a device with density 3.5.
The revolution will become 1260x2240 after the image be read into the program.
But I don't want the resolutions of the images to be changed, because the proportion of the images on the screen will be different.
I tried to find a solution, but I failed.
Is there a convenient way to fix the same resolution of the same image on the different devices with different densities?
If you want your images to be adjusted by Android, I understand they are drawables even if you didn't explicitly mention it, add them to the drawable-nodpi directory.

Related Links

How to update a textview of a listItem based on the current time and the event start time
Image resizing issue when keyboard open in android mobile
Accessing component within layout inflater
How to zoom in android Layout Editor?
Android exit transition excludeTarget not working inside android.support.v4.widget.DrawerLayout
How to implement Firebase Cloud messaging with Foreground application?
Retrieve Firebase Data saved with push()
Override lock screen with activity for alarm application
How to edit already present file in SD CARD using SAF(storage access framework)?
why does my shouldOverrideLoading method never get called?
Empty activity with API 7?
How to get id of the drop zone in clear form
Missing Visual Studio Android emulators from Cordova project targets
Android ExoPlayer- example to use DataSource's read() api
how to convert image to base64 binary value in android?
how to save application data in android [closed]

Categories

HOME
porting
ecmascript-6
character-encoding
numbers
interface
battery
hessian
3d-reconstruction
interpolation
hpc
angularfire2
nstableheaderview
character
spin
google-chrome-app
ibeacon-android
favicon
qsqlquery
glyphicons
android-7.0-nougat
babel
tiki-wiki
google-cloud-print
stackexchange
fable-f#
mat
outliers
cppreference
jaws
mql
volatile
laravel-eloquent
android-maps-extensions
gnat-gps
getpixel
diacritics
subclipse
oim
double-click
mesosphere
gitlist
swingworker
async.js
adafruit
fuzzywuzzy
ellucian-scribe
nupic
linklabel
rewrite
computer-architecture
pypiserver
wiredep
zen-cart
dronekit-android
android-broadcast
rrule
at-job
execve
primitive-types
jqmodal
build-script
verold
winginx
file-not-found
twitter-bootstrap-rails
xmltodict
gwt-openlayers
notorm
hibernate-entitymanager
oocss
modular
cffile
nevron
flex++
jquery-1.9
stress
filemerge
tournament
jqueryform
duplex
strtod
cardspace

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App