https://stackoverflow.com/questions/9729517/showing-the-current-selection-in-a-listview
Showing the current selection in a listview
As seen in the tablet version of gmail and google talk I am trying to show the current selection in a listview. I know this is not standard practice and should be avoided when necessary.in my progr...
stackoverflow.com
listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
listView.setItemChecked(mPosition, true);
'Android' 카테고리의 다른 글
Fragment에서 하드웨어키 onKeyDown/onKeyUp과 동일한 처리 (0) | 2021.01.27 |
---|---|
ListView를 scroll하면 focus가 날아가는 이슈 해결 (0) | 2021.01.22 |
레이아웃과 포커싱 (0) | 2021.01.20 |
단말기 하드키 조작과 listview focusing (0) | 2021.01.07 |
Big decimal (0) | 2020.12.21 |
댓글