I am developing an application that supports widget sizes 4×1, 4×2 and 5×2. Everything works well except that the 4×1 widget takes the size of a 4x2widget. I have checked the widget provide file and it seems ok:
The layout also is ok (I Have tried changing its width and height to fill_parent as some other people suggested) but whatever I did, when I put it on the home screen, it has a 4×1 size but it is centered vertically on a 4×2 size on the screen. It is like the size of the layout is correct (I have added a background color to see how high it is) but something is forcing the widget to size 4×2.
Anyone know what the problem could be?
Setting the minHeight value to 40dp solved the problem.