I am developing an android homescreen widget with size 250dp x 40dp for API versions above 14.
By testing this widget on my Nexus 7, I found out that when the tablet is placed in a portrait mode, the widget gets a 3x1 size but when switched on landscape it gets a 4x1 size.
See the images below:
Portrait:
Landscape:
Testing it on a nexus 10 gives 3x1 for both orientations.
What can I do to have the same size on all orientations and devices ?