Question

I created an app widget demo, I want to know is: it possible to set it to top or bottom of the home screen?

enter image description here

When set to bottom, then Android app menu dialer shortcut and contacts cannot be clicked. If screen is empty then it is set to top, but what about bottom?

And if the screen is not empty (suppose there is google search tab bar at top) and I want to display my widget above the Google search bar?

Is it possible or not?

Was it helpful?

Solution

You can not do it programmatically. It is user decision where to put your widget, and whether to put it on screen at all. You just supply widget size, and launcher will allow user to put your widget where it does fit.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top