LoginSignup
2
2

More than 5 years have passed since last update.

謎な挙動

Posted at

CHOICE_MODE_SINGLE状態のListViewで指定したpositionのitemをチェック状態にしてListViewの先頭に表示する場合

こっちだと動かない

        mListView.setSelection(position);
        mListView.setItemChecked(position, true);

こっちだと動く

        mListView.setItemChecked(position, true);
        mListView.setSelection(position);

うーむ。。

2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2