Then look at the new phone models on the market, and find the representative ones. on the Samsung edge 7 calling getDisplayMetrics().density returns 4 (xxxhdpi), so perhaps this info is outdated. You should not use the xxxhdpi qualifier for UI elements other than the launcher icon. You should not include xxxhdpi elements for your UI elements, this resolution is meant for upscaling launcher icons only (so mipmap folder only).Keep to the 3:4:6:8:12:16 scaling ratio between the six generalized densities (ldpi, mdpi, hdpi, etc).Due to various resolutions and aspects ratios on the market, it's impossible to create "perfect" fits for every screen, but you can do your best to make sure only a little bit of scaling has to be done, and thus mitigate the unwanted side effects. The problem is that too much scaling can result in artifacts (both during up and down scaling) and blurring. ![]() ![]() android:windowBackground) Android will automatically scale your image to the correct size. My understanding is that if you use a View object (as supposed to eg.
0 Comments
Leave a Reply. |