4

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: enter image description here

Landscape: enter image description here 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 ?

Cœur
  • 37,241
  • 25
  • 195
  • 267
antoniom
  • 3,143
  • 1
  • 37
  • 53

0 Answers0