pAddressbookName->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pAddressbookName->SetBackgroundColor(color);
pAddressbookName->SetTextConfig(50, LABEL_TEXT_STYLE_BOLD);
- pScrollPanel->AddControl(pAddressbookName);
+ AddControl(pAddressbookName);
static int UI_X_POSITION_LEFT = 5;
static int UI_HEIGHT = 80;
static int UI_Y_POSITION = 0;
__pListView = new (std::nothrow) ListView();
- __pListView->Construct(Rectangle(UI_X_POSITION_LEFT, UI_Y_POSITION + UI_HEIGHT, GetClientAreaBounds().width, GetClientAreaBounds().height));
+ __pListView->Construct(Rectangle(UI_X_POSITION_LEFT, UI_Y_POSITION + UI_HEIGHT, GetClientAreaBounds().width, GetClientAreaBounds().height - UI_HEIGHT));
__pListView->SetItemProvider(*this);
__pListView->AddListViewItemEventListener(*this);
pScrollPanel->AddControl(__pListView);