Search code examples
androidiconsscreen-resolution

Icons too small in 7'' tablet


I'm working on an application and I've received a complaint from a user that the interface is tremendously small. Although in all the devices I have tested (including tablets) the interface is displayed correctly, in his (Samsung Galaxy Tab A 7'') effectively the icons are disproportionately small.

It is as if Android is selecting the HDPI icons for this tablet.

Table cell in normal device: enter image description here

Table cell in this tablet: enter image description here

I can see it even happens with some texts. Have anyone faced this problem before?


Solution

  • For tablets, you should provide separate drawable images. Create your drawables and put them in

    For 7-inch tablet (hdpi and tvdpi density)

    res -> drawable-large

    or

    res -> drawable-sw600

    For 10-inch tablet (mdpi, hdpi and xhdpi density)

    res -> drawable-xlarge

    or

    res -> drawable-sw800

    You can read more about it here