Android ListView item highlight programmatically

后端 未结 2 1032
别那么骄傲
别那么骄傲 2021-01-12 23:12

I know it\'s been asked around but I haven\'t found quite the answer yet (new to Android so sorry about the ignorance)

my app\'s launch Activity has an EditText (cal

2条回答
  •  花落未央
    2021-01-13 00:02

    Have you tried setting the actual View to be selected?

    designations.setSelection(j);
    designations.getSelectedView().setSelected(true);
    

提交回复
热议问题