Android ListView item highlight programmatically

后端 未结 2 1021
别那么骄傲
别那么骄傲 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-12 23:53

    check out requestFocus() and maybe requestChildFocus()

    0 讨论(0)
  • 2021-01-13 00:02

    Have you tried setting the actual View to be selected?

    designations.setSelection(j);
    designations.getSelectedView().setSelected(true);
    
    0 讨论(0)
提交回复
热议问题