B brampie66 Member Licensed User Longtime User Sep 1, 2018 #1 Hi, I have some issues with remoteviews, I can't seem to get a 4x1 widget on multiple different devices (different aspect ratio screens). I've also noticed that the xml b4a generates is using absolutelayout, according to this page, https://developer.android.com/guide/topics/appwidgets/#CreatingLayout this is not supported ? Is there a way to force a widget to a specific format (4x1) and just resize like normal layouts ? (anchor also doesn't work when you set it to something other than left/top). Can I use the Android IDE to design a layout and paste that xml into the xml b4A uses ? Or is there a better way ? thx Bram
Hi, I have some issues with remoteviews, I can't seem to get a 4x1 widget on multiple different devices (different aspect ratio screens). I've also noticed that the xml b4a generates is using absolutelayout, according to this page, https://developer.android.com/guide/topics/appwidgets/#CreatingLayout this is not supported ? Is there a way to force a widget to a specific format (4x1) and just resize like normal layouts ? (anchor also doesn't work when you set it to something other than left/top). Can I use the Android IDE to design a layout and paste that xml into the xml b4A uses ? Or is there a better way ? thx Bram
Erel B4X founder Staff member Licensed User Longtime User Sep 2, 2018 #2 AbsoluteLayout is supported or it would have thrown an error. It is deprecated so they don't list it. Anchors and designer script will not work with home screen widgets. You can create the layout XML yourself. Make it a read-only file so it will not be deleted. Upvote 0
AbsoluteLayout is supported or it would have thrown an error. It is deprecated so they don't list it. Anchors and designer script will not work with home screen widgets. You can create the layout XML yourself. Make it a read-only file so it will not be deleted.