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

Writing arbitrary metadata to EXIF in Android
Screen Size of VideoView is changing When playing video in VideoView Android
Change EditText via slide/scroll/drag and normal input when only just touched
Map Directions API choice
SQLite and storing images
How to remove all previous Fragments from back stack leaving the current fragment visible [duplicate]
FragmentActivity onSaveInstanceState not getting called
Android Start activity without creating new instance
Open USB host communication on a device already connected at the launch of the application
Why does the drawBitmap method in Canvas class distorts the image
Preview images in Portrait screen mode issues in Samsung Glaxy NoteII for Android apps
How do I force a ListView to display a single item
Height of terrain Google Map Api v2
Decompile android apk file to create java source code
Android Calling getview
Android - Handle user inactivity in the application

Categories

HOME
url-redirection
porting
gridview
twitter-bootstrap-3
turing-machines
design-patterns
forms
pyqt
angular2-material
flex
mstest
socket.io
knitr
appcelerator
bitbucket-api
3d-reconstruction
limit
settings
x264
azure-container-service
recordrtc
pcl-crypto
why3
ycsb
google-content-api
asp.net-mvc-viewmodel
charles
game-theory
definitelytyped
beautifier
event-flow
autolisp
sharding
openproject
imagenet
graphhopper
password-protection
recurrent-neural-network
chef-solo
tasm
dcmtk
attributeerror
postgresql-8.4
opennms
podscms
remedy
pair-programming
rocks
chromium-os
meteor-packages
myspace
mta
jclouds
appscale
query-by-example
createprocess
yajsw
fuzzywuzzy
false-sharing
design-principles
libvlc
django-urls
android-launcher
slash
lasso
baasbox
ansi
zxspectrum
umlgraph
apache-spark-1.3
primitive-types
contrast
named-parameters
terminate
xmltodict
kendo-dataviz
code-duplication
modular
kogrid
traceability
jquery-blockui
josql
azman
kqueue
hibernateexception
pinch
google-ajax-api
timthumb
http-daemon
twitterizer
collectionviewsource
object-database
nstokenfield
cuda.net
fdf
mathematical-typesetting

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