2021年3月3日星期三

How to make an Scrollable app widget using RemoteViews

In my app widget, I have some buttons, and there are too many to fit the size of my app widget. Hence, I want to make it scrollable.

The most common thing to do is use ScrollView, but this is not allowed in app widgets. ListView is supported in app widgets, but I'm not sure how to use it. All app widgets can't use findViewById, so keep that in mind. My question is, How do I make part of my app widget scrollable with something like ListView or anything else?

https://stackoverflow.com/questions/66467558/how-to-make-an-scrollable-app-widget-using-remoteviews March 04, 2021 at 10:05AM

没有评论:

发表评论