When developing on a Nexus 7, I know it should use the resolution in the drawable-hdpi folder (even though technically it is a tvdpi resolution device). But in the graphical editor in eclipse it uses the xhdpi and when I render it to the device, then it uses hdpi.

I tested this by putting different images with the same name in each of the resolution folders to see what it uses. Eclipse graphical editor shows xhdpi images and the device shows hdpi images. This makes it hard to layout the screen.. any ideas?

有帮助吗?

解决方案

Should use drawable-hdpi? You may want to use drawable-tvdpi. Assets would be 1.33 * mdpi.

其他提示

I think your problem can be fixed using changing layout to tvdpi. Try using tvdpi for Nexus 7, Galaxy note 8 etc

enter image description here

try adding tvdpi for the layout like:

layout-sw600dp-land-tvdpi layout-sw600dp-port-tvdpi

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top