動態刷新GridView的數據後,其焦點也會被重置為第一個。為瞭保持原來的焦點位置,需要刷新後手動設置焦點位置。
[java]
mGridViewApp.setSelection(focusIndex);
mGridViewApp.setSelection(focusIndex);
摘自 痛而不言,笑而不語
只講重點的設計教學,立刻學習網頁教學網誌!
動態刷新GridView的數據後,其焦點也會被重置為第一個。為瞭保持原來的焦點位置,需要刷新後手動設置焦點位置。
[java]
mGridViewApp.setSelection(focusIndex);
mGridViewApp.setSelection(focusIndex);
摘自 痛而不言,笑而不語