font.Construct(FONT_STYLE_PLAIN, __childFontSize);
float textHeight = GetTextHeight(pInfo->GetDescription(), font, itemWidth - 32.f);
- TableViewSimpleItem* pSimpleItem = new (std::nothrow) TableViewSimpleItem();
- pSimpleItem->Construct(layout, FloatDimension(itemWidth, 40.f+textHeight));
- pSimpleItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
- pSimpleItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
- pSimpleItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
- pSimpleItem->SetItemContents(pInfo->GetDescription(), null);
- pSimpleItem->SetTextSize(__childFontSize);
-
- pItem = pSimpleItem;
+ pItem = new (std::nothrow) TableViewItem();
+ pItem->Construct(layout, FloatDimension(itemWidth, 40.f+textHeight));
+ pItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
+ pItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
+ pItem->GetAccessibilityContainer()->GetElement(L"TableViewItem")->SetLabel(pInfo->GetDescription());
+
+ Label* pLabel = new (std::nothrow) Label();
+ pLabel->Construct(FloatRectangle(0, 0, 0, 0), pInfo->GetDescription());
+ pLabel->SetTextConfig(__childFontSize, LABEL_TEXT_STYLE_NORMAL);
+ pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+ pLabel->GetAccessibilityContainer()->RemoveAllElements();
+
+ pChildControl = pLabel;
}
break;
}