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.
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