Android RemoteViews ListView Scroll

前端 未结 4 1932
花落未央
花落未央 2021-01-01 06:01

Im trying to scroll a ListView to a particular position in an AppWidget.

However it does not do anything, i also tried the setPosit

4条回答
  •  一向
    一向 (楼主)
    2021-01-01 06:40

    I think i have the solution, i use it in my own code. For information, i have some pages & want to show them on demand :

    getListView().setSelection(((moreServices-1)*20)+1);
    

    For you, it will be :

    yourListView.setSelection(3);

    Hope it helps...

    EDIT

    I think you should see that... that's older, but maybe that's never changed

    How to make a scrollable app widget?

提交回复
热议问题