{
if (__selectedIndex >= 0)
{
+ fireIndex = __selectedIndex;
__isSelectionDelayed = false;
+
+ PreDrawCheckAnimation(fireIndex);
+ FireEventAfterTouchRelease(fireIndex);
+
if (__isTouchAnimationEnabled)
{
- FireEventAfterTouchRelease(__selectedIndex);
- StartSelectAnimation(__selectedIndex);
+ StartSelectAnimation(fireIndex);
}
else
{
- fireIndex = __selectedIndex;
- PreDrawCheckAnimation(fireIndex);
- FireEventAfterTouchRelease(fireIndex);
DrawCheckAnimation(fireIndex);
}
}
{
ResetTouchActionTimer();
OnTouchActionActivated(*__pIconListView, __currentTouchInfo);
+ fireIndex = __selectedIndex;
__isSelectionDelayed = true;
+ PreDrawCheckAnimation(fireIndex);
+ FireEventAfterTouchRelease(fireIndex);
+
if (__isTouchAnimationEnabled)
{
- FireEventAfterTouchRelease(__selectedIndex);
- StartSelectAnimation(__selectedIndex);
+ StartSelectAnimation(fireIndex);
}
else
{
- fireIndex = __selectedIndex;
- PreDrawCheckAnimation(fireIndex);
- FireEventAfterTouchRelease(fireIndex);
DrawCheckAnimation(fireIndex);
}
}
- PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_TAP);
}
// Trigger Magnetic Scroll Effect
break;
}
}
+ PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_TAP);
}
}
if (!completedNormally)
{
- if (__pIconListView->GetStyle() == ICON_LIST_VIEW_STYLE_MARK)
+ if (__pIconListView->GetStyle() == ICON_LIST_VIEW_STYLE_RADIO)
{
- if (__pPreviousSelectAnimationVE == __pSelectAnimationVE)
- {
- bool isChecked = __pListModel->IsItemChecked(DEFAULT_GROUP_INDEX, index);
- __pListModel->SetItemChecked(DEFAULT_GROUP_INDEX, index, !isChecked);
- }
- else if (&target != __pPreviousSelectAnimationVE)
- {
- bool isChecked = __pListModel->IsItemChecked(DEFAULT_GROUP_INDEX, __previousCheckIndex);
- __pListModel->SetItemChecked(DEFAULT_GROUP_INDEX, index, !isChecked);
- }
- else if (&target != __pSelectAnimationVE)
+ if (__pListModel->IsItemChecked(DEFAULT_GROUP_INDEX, index))
{
- bool isChecked = __pListModel->IsItemChecked(DEFAULT_GROUP_INDEX, index);
- __pListModel->SetItemChecked(DEFAULT_GROUP_INDEX, index, !isChecked);
+ __pListModel->SetItemChecked(DEFAULT_GROUP_INDEX, index, false);
+ RedrawItem(__checkedRadioIndex);
}
}
RedrawItem(index);
}
else
{
- PreDrawCheckAnimation(index);
DrawCheckAnimation(index);
}
__isSelectAnimationRunning = false;
toIndex -= __itemCountPerAxis;
}
- _ListItemPos from = { DEFAULT_GROUP_INDEX, __reorderToIndex };
- _ListItemPos to = { DEFAULT_GROUP_INDEX, toIndex };
_IconListItem* pItem = null;
_IconListItem* pTempItem = null;
_VisualElement* pToItemVE = null;
}
}
- __pListModel->MoveItem(from, to);
+ __pListModel->MoveItem(DEFAULT_GROUP_INDEX, __reorderToIndex, DEFAULT_GROUP_INDEX, toIndex);
__reorderToIndex = toIndex;
}
if (index <= INVALID_INDEX)
return;
- RedrawItem(index, 1.0f, false, 1.0f);
+ RedrawItem(index);
_IconListItem* pItem = static_cast<_IconListItem*>(__pListModel->LoadItem(DEFAULT_GROUP_INDEX, index));
_IconListPresenter::DrawCheckAnimation(int index)
{
result r = GetLastResult();
- int tempIndex = index;
__selectedIndex = INVALID_INDEX;
switch (__pIconListView->GetStyle())
{
case ICON_LIST_VIEW_STYLE_NORMAL:
{
- RedrawItem(tempIndex);
+ RedrawItem(index);
break;
}
case ICON_LIST_VIEW_STYLE_RADIO:
{
- if (tempIndex != __checkedRadioIndex)
+ if (index != __checkedRadioIndex)
{
if (__checkedRadioIndex >= 0 && __pListModel->IsLoadedItem(DEFAULT_GROUP_INDEX, __checkedRadioIndex))
{
r = RedrawItem(__checkedRadioIndex);
}
- __checkedIndex = tempIndex;
+ __checkedIndex = index;
StartCheckAnimation(index);
}
else
- RedrawItem(tempIndex);
+ {
+ RedrawItem(index);
+ }
break;
}
case ICON_LIST_VIEW_STYLE_MARK:
if (__isItemChecked)
{
- r = RedrawItem(tempIndex);
+ r = RedrawItem(index);
}
else
{
- __checkedIndex = tempIndex;
+ __checkedIndex = index;
StartCheckAnimation(index);
}
break;
}
}
- __checkedRadioIndex = INVALID_INDEX;
__isItemChecked = false;
return r;