2013年8月25日 星期日

[Android] AdapterView


  • after set adapter default select position 0.
  • 若被選的位置和原本的相同 那麼不會觸發 onItemSelected.

  • setSelection(position)
    • position 那個 item 會被移動到 top (not touch mode)
  • getChildAt(index)
    • index: 畫面的位置。
    • 所以如果 index 是在不可視的位置 可能會得到 null。



* Related post:
[ListView] The World of List View
[Android] ListView Tips

沒有留言:

張貼留言