Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Galaxy S3 tablet not using correct dpi image from resources

$
0
0

I am using the 3.1.3.GA SDK on windows.

On the Android emulator the correct images from the res-ldpi, res-mdpi, res-hdpi, res-xhdpi are being pulled in correctly for the relevant screen sizes.

When trying it on a Galaxy S3 it doesn't even use the hdpi versions which it should, it is using the mdpi.

Now I know there seems to be a problem with xhdpi and i have tried using the

<tool-api-level>11</tool-api-level>
in the TiApp.xml on the same level as the <manifest> which didn't seem to make a difference.

I have tried forcing the image to scale by detecting the width, calculating the DP value and applying that.

I have also tried adding it after its container object has been drawn.

All of which affect the emulated version but do nothing for the version on the real S3. the graphic remains unmutable and small.

Without going through the hassle of making it a background image and calculating the correct aspect so it doesn't distort is there anything I should be aware of?

The containing View takes up the full screen. and the image is just referenced as "/images/introduction.png" with the various sizes stored in Resources/images/re-hdpi etc...


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>