SysTryReturn(NID_UI_CTRL, __pItemDivider != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
AttachSystemChild(*__pItemDivider);
+
+ _AccessibilityContainer* pContainer = __pItemDivider->GetAccessibilityContainer();
+ pContainer->Activate(false);
}
if (__pItemTopDivider == null)
SysTryReturn(NID_UI_CTRL, __pItemTopDivider != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
AttachSystemChild(*__pItemTopDivider);
+
+ _AccessibilityContainer* pContainer = __pItemTopDivider->GetAccessibilityContainer();
+ pContainer->Activate(false);
}
return r;
return;
}
+void
+_TableViewItem::OnAncestorInputEnableStateChanged(const _Control& control)
+{
+ if (__isPressedTimerEnabled)
+ {
+ StopTouchPressedTimer();
+ }
+
+ __annexOnOffHandlerMoved = false;
+ __itemTouchMoved = false;
+
+ __itemSelected = false;
+ __drawingStatus = TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL;
+
+ if (__annexStyle == TABLE_VIEW_ANNEX_STYLE_DETAILED)
+ {
+ __isSelectedDetailButton = false;
+ }
+
+ SetItemChanged(true);
+ Invalidate();
+}
+
result
_TableViewItem::StartCheckBoxAnimation(void)
{
void
_TableViewItem::DrawItemDivider(void)
{
+ if (__pDrawingProperty->itemDividerEnabled == false ||
+ __itemType == TABLE_VIEW_ITEM_TYPE_HEADER ||
+ __itemType == TABLE_VIEW_ITEM_TYPE_FOOTER ||
+ __itemDividerEnabled == false)
+ {
+ if (__pItemDivider != null)
+ {
+ __pItemDivider->SetVisibleState(false);
+ }
+
+ if (__pItemTopDivider != null)
+ {
+ __pItemTopDivider->SetVisibleState(false);
+ }
+
+ return;
+ }
+ else
+ {
+ if (__pItemDivider != null)
+ {
+ __pItemDivider->SetVisibleState(true);
+ }
+
+ if (__pItemTopDivider != null)
+ {
+ __pItemTopDivider->SetVisibleState(true);
+ }
+ }
+
FloatRectangle dividerBottomBounds;
FloatRectangle dividerTopBounds;
Color dividerColor;
FloatRectangle bounds;
FloatPoint bottomPoint;
- if (__pDrawingProperty->itemDividerEnabled == false ||
- __itemType == TABLE_VIEW_ITEM_TYPE_HEADER ||
- __itemType == TABLE_VIEW_ITEM_TYPE_FOOTER ||
- __itemDividerEnabled == false)
+ if( __drawingStatus == TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED ||
+ __drawingStatus == TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED)
{
- if (__pItemDivider != null)
+ if(__pItemDivider != null && __itemType != TABLE_VIEW_ITEM_TYPE_TITLE)
{
__pItemDivider->SetVisibleState(false);
}
- if (__pItemTopDivider != null)
+ if(__pItemTopDivider != null)
{
__pItemTopDivider->SetVisibleState(false);
}
}
- else if (__itemType == TABLE_VIEW_ITEM_TYPE_TITLE)
+
+ if (__itemType == TABLE_VIEW_ITEM_TYPE_TITLE)
{
if(__pItemBgBitmap[__drawingStatus] != null)
{
__pItemDivider->Invalidate();
}
}
-
- _AccessibilityContainer* pContainer = __pItemDivider->GetAccessibilityContainer();
- pContainer->Activate(false);
}
if (__pItemTopDivider != null)
__pItemTopDivider->SetBackgroundColor(dividerColor);
__pItemTopDivider->Invalidate();
}
-
- _AccessibilityContainer* pContainer = __pItemTopDivider->GetAccessibilityContainer();
- pContainer->Activate(false);
}
}
GET_FIXED_VALUE_CONFIG(TABLEVIEW::ITEM_DIVIDER_HEIGHT, _CONTROL_ORIENTATION_PORTRAIT, itemHighlightMarginInt);
itemHighlightMargin = _CoordinateSystemUtils::ConvertToFloat(itemHighlightMarginInt); // +++ check floating
}
- bounds.SetBounds(0.0f, itemHighlightMargin, itemBounds.width, itemBounds.height - itemHighlightMargin *2);
+ bounds.SetBounds(0.0f, 0.0f, itemBounds.width, itemBounds.height);
return bounds;
}