I need to provide a widget for an app I have written. The widget has to be positioned with other widgets from a different app (App1). The existing widgets for App1 all fit closely together in a neat grid and the tablet is used as an instrument panel
The widgets I have tried can't be placed next to the existing ones, and I can't get make a widget which is the same size as the existing ones. I've read that from SDK 14 widgets are forced to leave a space around themselves so I've tried using SDK 13 but it didn't make any difference that I can see.
I've installed App1 on my Nexus tablet, with Android 6.0.1, but I cannot get the widgets from App1 to but together in a grid like they do on my customer's tablets, one of which has Android 5.0.1 and the other has 7.1.2, so I guess it's partly because they have lower resolutions, but I don't know of course.
Widgets seem to be complicated to get right for different devices. Embarrassingly, I've already spent more time on the widget than I did writing the app. Can someone point me at something I should read to see what I should do?
The widgets I have tried can't be placed next to the existing ones, and I can't get make a widget which is the same size as the existing ones. I've read that from SDK 14 widgets are forced to leave a space around themselves so I've tried using SDK 13 but it didn't make any difference that I can see.
I've installed App1 on my Nexus tablet, with Android 6.0.1, but I cannot get the widgets from App1 to but together in a grid like they do on my customer's tablets, one of which has Android 5.0.1 and the other has 7.1.2, so I guess it's partly because they have lower resolutions, but I don't know of course.
Widgets seem to be complicated to get right for different devices. Embarrassingly, I've already spent more time on the widget than I did writing the app. Can someone point me at something I should read to see what I should do?