Search code examples
androidselectionandroid-listfragment

how to set initial selection on listFragment


Is it possible to set the inital selection on a listFragment? I would like to show an event list temporally ordered with option to see past events if scrolling up.


Solution

  • getListView().setSelection(position);
    

    See here