質問

I have a homescreen widget (android > 4.0) with a gridview and show some pictures within. And I want to make some additional views (imageview with icons or anything else) visible on scrolling this grid.

So if the user scolls through the grid, little icons within every picture is gonna be visible. Is that possible?

I searched for something like setOnScrollListener on RemoteViews, but I didn't find anything nor a getParent to access the grid from within the griditem.

Thanks in advance!!!

役に立ちましたか?

解決

You do not need an OnScrollListener for this. GridView already knows how to scroll and already knows how to populate additional cells in the grid based upon that scrolling. Simply provide your data to the GridView (in this case, via a RemoteViewsFactory).

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top