delete background;
background = nullptr;
+
+ delete backgroundtop;
+ backgroundtop = nullptr;
}
void MessageShowView::InitializeLabel(UILabel *label, int posX, int posY, int width, int height, const char *viewId, int fontSize)
void MessageShowView::InitView()
{
/* -------------------------------------------------------------------------- */
+
+ CreateLine(backgroundtop, 0, 0, 100, 60, "line");
+ backgroundtop->SetVisible(false);
+ container_->Add(backgroundtop);
+
title = new UILabel();
if (title == nullptr)
{
}
container_->SetPosition(0, 0);
container_->Resize(VERTICAL_RESOLUTION, HORIZONTAL_RESOLUTION);
- container_->SetScrollBlankSize(20);
- container_->SetReboundSize(50);
- // container_->SetHorizontalScrollState(false); // 设置水平滚动失效
- // container_->SetDirection(1);
+ // container_->SetScrollBlankSize(20);
+ // container_->SetReboundSize(50);
+ container_->SetHorizontalScrollState(false); // 设置水平滚动失效
+ container_->SetDirection(1);
container_->SetOnDragListener(presenter_);
container_->SetTouchable(true);