#include "displaybrightness/include/ScreenDurationView.h"\r
-#include "displaybrightness/include/ScreenDurationPresenter.h"\r
-#include "UiConfig.h"\r
-\r
+#include "displaybrightness/include/DisplayBrightnessPresenter.h"\r
+#include "wearable_log.h"\r
namespace OHOS\r
{\r
\r
\r
ScreenDurationView::ScreenDurationView()\r
{\r
-\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::ScreenDurationView");\r
g_pScreenDurationView = this;\r
}\r
\r
ScreenDurationView::~ScreenDurationView()\r
{\r
- container_->RemoveAll();\r
- delete ScreenDurationScrollView;\r
- ScreenDurationScrollView = nullptr;\r
- delete ScreenDurationLabel;\r
- ScreenDurationLabel = nullptr;\r
- delete container_;\r
- container_ = nullptr;\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::~ScreenDurationView");\r
+ ClearAll();\r
g_pScreenDurationView = nullptr;\r
}\r
\r
return g_pScreenDurationView;\r
}\r
\r
- void ScreenDurationView::InitView(void)\r
+ void ScreenDurationView::ClearAll(void)\r
{\r
- if (container_ == nullptr)\r
+ if (initViewStatus == true)\r
{\r
- container_ = new UIViewGroup();\r
- container_->SetPosition(0, 0, 466, 466);\r
- container_->SetStyle(STYLE_BACKGROUND_OPA, 0);\r
- UIView::OnDragListener *draglistener = static_cast<UIView::OnDragListener *>(ScreenDurationPresenter::GetInstance());\r
- if (draglistener == nullptr)\r
+ ScreenDurationScrollView->RemoveAll();\r
+\r
+ delete ScreenDurationTitleLabel;\r
+ ScreenDurationTitleLabel = nullptr;\r
+\r
+ for (int i = 0; i < 3; i++)\r
{\r
- return;\r
+ delete ScreenDurationLabel[i];\r
+ ScreenDurationLabel[i] = nullptr;\r
+\r
+ delete BackGroundImage[i];\r
+ BackGroundImage[i] = nullptr;\r
+\r
+ delete ScreenDurationRadioButton[i];\r
+ ScreenDurationRadioButton[i] = nullptr;\r
}\r
- container_->SetOnDragListener(draglistener);\r
- container_->SetTouchable(true);\r
- container_->SetDraggable(true);\r
+\r
+ delete ScreenDurationScrollView;\r
+ ScreenDurationScrollView = nullptr;\r
}\r
+ }\r
\r
- // Add ScrollView to App\r
- if (ScreenDurationScrollView == nullptr)\r
+ UIRadioButton *ScreenDurationView::GetRadioButton(int16_t i)\r
+ {\r
+ if (ScreenDurationRadioButton[i] == nullptr)\r
{\r
- ScreenDurationScrollView = new UIScrollView();\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::ScreenDurationRadioButton[%d] is nullptr!", i);\r
+ return nullptr;\r
}\r
- ScreenDurationScrollView->SetPosition(0, 0);\r
- ScreenDurationScrollView->Resize(466, 466);\r
- ScreenDurationScrollView->SetViewId("ScreenDurationScrollView");\r
- ScreenDurationScrollView->SetStyle(STYLE_BACKGROUND_OPA, 0xff);\r
- container_->Add(ScreenDurationScrollView);\r
- ScreenDurationScrollView->SetVisible(true);\r
+ return ScreenDurationRadioButton[i];\r
+ }\r
\r
- // Add Label to App\r
- if (ScreenDurationLabel == nullptr)\r
+ // 设置图片\r
+ UIImageView *ScreenDurationView::SetUpImageView(ImageConfig &imageconfig)\r
+ {\r
+ UIImageView *Image = new UIImageView();\r
+ if (Image == nullptr)\r
{\r
- ScreenDurationLabel = new UILabel();\r
+ return nullptr;\r
}\r
- ScreenDurationLabel->SetPosition(173, 52); // widget's left position and top position\r
- ScreenDurationLabel->Resize(120, 35); // widget's width and height\r
- ScreenDurationLabel->SetViewId("ScreenDurationLabel"); // Set style\r
- ScreenDurationLabel->SetStyle(STYLE_TEXT_FONT, 30);\r
- ScreenDurationLabel->SetStyle(STYLE_LINE_HEIGHT, 35);\r
-\r
- // Set additional property\r
- ScreenDurationLabel->SetText("亮屏时长");\r
- ScreenDurationLabel->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);\r
- ScreenDurationLabel->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);\r
- ScreenDurationLabel->SetRollSpeed(0);\r
- ScreenDurationLabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);\r
-\r
- // Add to scrollView1\r
- ScreenDurationScrollView->Add(ScreenDurationLabel);\r
- ScreenDurationLabel->SetVisible(true);\r
- /********************************************************************************************************/\r
- // Add ImageView to App\r
- UIImageView *secImage5 = new UIImageView();\r
- secImage5->SetPosition(39, 120);\r
- secImage5->Resize(380, 100);\r
- secImage5->SetViewId("5secImage");\r
- secImage5->SetStyle(STYLE_BORDER_RADIUS, 50);\r
- secImage5->SetSrc(PNG_SETTING_BACKGROUND_IMAGE);\r
- ScreenDurationScrollView->Add(secImage5);\r
- secImage5->SetVisible(true);\r
- // Add Label to App\r
- UILabel *secLabel5 = new UILabel();\r
- secLabel5->SetPosition(99, 153);\r
- secLabel5->Resize(48, 35);\r
- secLabel5->SetViewId("5secLabel");\r
- secLabel5->SetStyle(STYLE_TEXT_FONT, 30);\r
- secLabel5->SetStyle(STYLE_BACKGROUND_OPA, 0xff);\r
- secLabel5->SetStyle(STYLE_BACKGROUND_COLOR, 0xff191919);\r
- secLabel5->SetStyle(STYLE_LINE_HEIGHT, 35);\r
-\r
- secLabel5->SetText("5秒");\r
- secLabel5->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);\r
- secLabel5->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);\r
- secLabel5->SetRollSpeed(6);\r
- secLabel5->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);\r
-\r
- ScreenDurationScrollView->Add(secLabel5);\r
- secLabel5->SetVisible(true);\r
-\r
- // Add CheckBox to App\r
- second5checkbox = new UICheckBox();\r
- second5checkbox->SetPosition(300, 130);\r
- second5checkbox->Resize(80, 80);\r
- second5checkbox->SetViewId(SECOND5_CHECKBOX);\r
- second5checkbox->SetStyle(STYLE_BACKGROUND_COLOR, 0xff191919);\r
- second5checkbox->SetStyle(STYLE_BACKGROUND_OPA, 0xff);\r
- second5checkbox->SetImages(PNG_CHECKBOX_ON_IMAGE, PNG_CHECKBOX_OFF_IMAGE);\r
- \r
- ScreenDurationScrollView->Add(second5checkbox);\r
- second5checkbox->SetVisible(true);\r
- /********************************************************************************************************/\r
- // Add ImageView to App\r
- UIImageView *secImage10 = new UIImageView();\r
- secImage10->SetPosition(39, 240);\r
- secImage10->Resize(380, 100);\r
- secImage10->SetViewId("10secImage");\r
- secImage10->SetStyle(STYLE_BORDER_RADIUS, 50);\r
- secImage10->SetSrc(PNG_SETTING_BACKGROUND_IMAGE);\r
- ScreenDurationScrollView->Add(secImage10);\r
- secImage10->SetVisible(true);\r
-\r
- // Add Label to App\r
- UILabel *secLabel10 = new UILabel();\r
- secLabel10->SetPosition(99, 273);\r
- secLabel10->Resize(65, 35);\r
- secLabel10->SetViewId("10secLabel");\r
- secLabel10->SetStyle(STYLE_TEXT_FONT, 30);\r
- secLabel10->SetStyle(STYLE_BACKGROUND_OPA, 0xff);\r
- secLabel10->SetStyle(STYLE_BACKGROUND_COLOR, 0xff191919);\r
- secLabel10->SetStyle(STYLE_LINE_HEIGHT, 35);\r
-\r
- secLabel10->SetText("10秒");\r
- secLabel10->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);\r
- secLabel10->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);\r
- secLabel10->SetRollSpeed(6);\r
- secLabel10->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);\r
-\r
- ScreenDurationScrollView->Add(secLabel10);\r
- secLabel10->SetVisible(true);\r
-\r
- // Add CheckBox to App\r
- second10checkbox = new UICheckBox();\r
- second10checkbox->SetPosition(300, 250);\r
- second10checkbox->Resize(80, 80);\r
- second10checkbox->SetViewId(SECOND10_CHECKBOX);\r
- second10checkbox->SetStyle(STYLE_BACKGROUND_COLOR, 0xff191919);\r
- second10checkbox->SetStyle(STYLE_BACKGROUND_OPA, 0xff);\r
- second10checkbox->SetImages(PNG_CHECKBOX_ON_IMAGE, PNG_CHECKBOX_OFF_IMAGE);\r
- \r
- ScreenDurationScrollView->Add(second10checkbox);\r
- second10checkbox->SetVisible(true);\r
- /********************************************************************************************************/\r
- // Add ImageView to App\r
- UIImageView *secImage15 = new UIImageView();\r
- secImage15->SetPosition(39, 360);\r
- secImage15->Resize(380, 100);\r
- secImage15->SetViewId("15secImage");\r
- secImage15->SetStyle(STYLE_BORDER_RADIUS, 50);\r
- secImage15->SetSrc(PNG_SETTING_BACKGROUND_IMAGE);\r
- ScreenDurationScrollView->Add(secImage15);\r
- secImage15->SetVisible(true);\r
-\r
- // Add Label to App\r
- UILabel *secLabel15 = new UILabel();\r
- secLabel15->SetPosition(99, 393);\r
- secLabel15->Resize(65, 35);\r
- secLabel15->SetViewId("15secLabel");\r
- secLabel15->SetStyle(STYLE_TEXT_FONT, 30);\r
- secLabel15->SetStyle(STYLE_BACKGROUND_OPA, 0xff);\r
- secLabel15->SetStyle(STYLE_BACKGROUND_COLOR, 0xff191919);\r
- secLabel15->SetStyle(STYLE_LINE_HEIGHT, 35);\r
-\r
- secLabel15->SetText("15秒");\r
- secLabel15->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);\r
- secLabel15->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);\r
- secLabel15->SetRollSpeed(6);\r
- secLabel15->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);\r
-\r
- ScreenDurationScrollView->Add(secLabel15);\r
- secLabel15->SetVisible(true);\r
-\r
- // Add CheckBox to App\r
- second15checkbox = new UICheckBox();\r
- second15checkbox->SetPosition(300, 370);\r
- second15checkbox->Resize(80, 80);\r
- second15checkbox->SetViewId(SECOND15_CHECKBOX);\r
- second15checkbox->SetStyle(STYLE_BACKGROUND_COLOR, 0xff191919);\r
- second15checkbox->SetStyle(STYLE_BACKGROUND_OPA, 0xff);\r
- second15checkbox->SetImages(PNG_CHECKBOX_ON_IMAGE, PNG_CHECKBOX_OFF_IMAGE);\r
- \r
- ScreenDurationScrollView->Add(second15checkbox);\r
- second15checkbox->SetVisible(true);\r
- /********************************************************************************************************/\r
- // AddLabelImageViewCheckbox(ScreenDurationScrollView, 99, 153, 48, 35, "5秒", "5secLabel",\r
- // 39, 120, 380, 100, "5secImage", PNG_SETTING_BACKGROUND_IMAGE,\r
- // second5checkbox, 300, 130, 80, 80, SECOND5_CHECKBOX, PNG_CHECKBOX_ON_IMAGE, PNG_CHECKBOX_OFF_IMAGE);\r
- /*\r
- AddLabelImageViewCheckbox(ScreenDurationScrollView, 99, 273, 65, 35, "10秒", "10secLabel",\r
- 39, 240, 380, 100, "10secImage", PNG_SETTING_BACKGROUND_IMAGE,\r
- second10checkbox, 300, 250, 80, 80, SECOND10_CHECKBOX, PNG_CHECKBOX_ON_IMAGE, PNG_CHECKBOX_OFF_IMAGE);\r
- \r
- AddLabelImageViewCheckbox(ScreenDurationScrollView, 99, 393, 65, 35, "15秒", "15secLabel",\r
- 39, 360, 380, 100, "15secImage", PNG_SETTING_BACKGROUND_IMAGE,\r
- second15checkbox, 300, 370, 80, 80, SECOND15_CHECKBOX, PNG_CHECKBOX_ON_IMAGE, PNG_CHECKBOX_OFF_IMAGE);\r
- */\r
- \r
- /********************************************************************************************************/\r
- UIImageView *image1_ = new UIImageView();\r
-\r
- image1_->SetPosition(183, 440);\r
- image1_->Resize(100, 100);\r
- image1_->SetViewId("image1");\r
- ScreenDurationScrollView->Add(image1_);\r
- image1_->SetVisible(true);\r
- /********************************************************************************************************/\r
-\r
- UIImageView *image2_ = new UIImageView();\r
+ Image->SetPosition(imageconfig.x, imageconfig.y, imageconfig.w, imageconfig.h);\r
+ Image->SetSrc(imageconfig.ImageSrc);\r
+ return Image;\r
+ }\r
\r
- image2_->SetPosition(183, 19);\r
- image2_->Resize(100, 100);\r
- image2_->SetViewId("image2");\r
- ScreenDurationScrollView->Add(image2_);\r
- image2_->SetVisible(true);\r
+ // 设置标签\r
+ UILabel *ScreenDurationView::SetUpLabel(LabelConfig &labelconfig)\r
+ {\r
+ UILabel *label = new UILabel();\r
+ if (label == nullptr)\r
+ {\r
+ return nullptr;\r
+ }\r
+ label->SetPosition(labelconfig.left, labelconfig.top, labelconfig.width, labelconfig.height); // 位置大小\r
+ label->SetStyle(STYLE_TEXT_FONT, labelconfig.fontSize); // 字体大小\r
+ label->SetStyle(STYLE_LINE_HEIGHT, labelconfig.lineHeigh); // 字体行高\r
+ label->SetText(labelconfig.text); // 内容\r
+ label->SetLineBreakMode(labelconfig.lineBreakMode); // 断行模式。\r
+ label->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);\r
+ label->SetFont(DEFAULT_VECTOR_FONT_FILENAME, labelconfig.fontSize);\r
+ return label;\r
+ }\r
\r
- ScreenDurationPresenter::GetInstance()->getcheckbox(second5checkbox,second10checkbox,second15checkbox);\r
- UIView::OnClickListener *checkboxClick = static_cast<UIView::OnClickListener *>(ScreenDurationPresenter::GetInstance());\r
- second5checkbox->SetOnClickListener(checkboxClick);\r
- second10checkbox->SetOnClickListener(checkboxClick);\r
- second15checkbox->SetOnClickListener(checkboxClick);\r
+ // 设置单选框\r
+ UIRadioButton *ScreenDurationView::SetUpRadioButton(RadioButtonConfig &radiobuttonconfig)\r
+ {\r
+ UIRadioButton *radiobutton = new UIRadioButton("ScreenDuration");\r
+ if (nullptr == radiobutton)\r
+ {\r
+ return nullptr;\r
+ }\r
+ radiobutton->SetPosition(radiobuttonconfig.x, radiobuttonconfig.y, radiobuttonconfig.w, radiobuttonconfig.h);\r
+ radiobutton->SetStyle(STYLE_BACKGROUND_COLOR, 0xffffffff);\r
+ radiobutton->SetImages(radiobuttonconfig.select, radiobuttonconfig.unselect);\r
+ return radiobutton;\r
}\r
\r
- void ScreenDurationView::OnStart()\r
+ // 亮屏时长视图“scrollView”初始化\r
+ bool ScreenDurationView::SetUpScrollView(void)\r
{\r
- View<ScreenDurationPresenter>::OnStart();\r
- InitView();\r
- RootView::GetInstance()->Add(container_);\r
+ ScreenDurationScrollView = new UIScrollView();\r
+ if (ScreenDurationScrollView == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::ScreenDurationScrollView new fail!");\r
+ return false;\r
+ }\r
+ ScreenDurationScrollView->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());\r
+ ScreenDurationScrollView->SetScrollBlankSize(35);\r
+ ScreenDurationScrollView->SetReboundSize(50);\r
+ ScreenDurationScrollView->SetDirection(1);\r
+ UIView::OnDragListener *draglistener = static_cast<UIView::OnDragListener *>(DisplayBrightnessPresenter::GetInstance());\r
+ if (draglistener == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::draglistener can not be nullptr!");\r
+ return false;\r
+ }\r
+ ScreenDurationScrollView->SetOnDragListener(draglistener);\r
+ ScreenDurationScrollView->SetTouchable(true);\r
+ ScreenDurationScrollView->SetDraggable(true);\r
+ return true;\r
}\r
\r
- void ScreenDurationView::OnSetUpView()\r
+ // 亮屏时长视图“图片”初始化\r
+ bool ScreenDurationView::SetUpScreenDurationViewImageView(void)\r
{\r
- View<ScreenDurationPresenter>::OnSetUpView();\r
- Draw();\r
+ ImageConfig imageconfig = {\r
+ .x = 39,\r
+ .y = 120,\r
+ .w = 380,\r
+ .h = 100,\r
+ .ImageSrc = "/user/res/SETTING_BACKGROUND.bin",\r
+ };\r
+\r
+ for (int i = 0; i < 3; i++)\r
+ {\r
+ imageconfig.y = 120 + (i * 120);\r
+ BackGroundImage[i] = SetUpImageView(imageconfig);\r
+ if (BackGroundImage[i] == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::BackGroundImage[%d] is nullptr!", i);\r
+ return false;\r
+ }\r
+ }\r
+ return true;\r
}\r
\r
- void ScreenDurationView::OnTearDownView()\r
+ // 亮屏时长视图“标签”初始化\r
+ bool ScreenDurationView::SetUpScreenDurationViewLabel(void)\r
{\r
+ // 创建ScreenDurationTitleLabel\r
+ LabelConfig labelconfig = {\r
+ .left = 173,\r
+ .top = 52,\r
+ .width = 120,\r
+ .height = 35,\r
+ .fontSize = 30,\r
+ .lineHeigh = 35,\r
+ .text = "亮屏时长",\r
+ .lineBreakMode = UILabel::LINE_BREAK_ADAPT,\r
+ };\r
+\r
+ ScreenDurationTitleLabel = SetUpLabel(labelconfig);\r
+ if (nullptr == ScreenDurationTitleLabel)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::SetUpScreenDurationViewLabel is nullptr!");\r
+ return false;\r
+ }\r
+\r
+ // 创建ScreenDurationLabel\r
+ labelconfig = {\r
+ .left = 99,\r
+ .fontSize = 30,\r
+ .lineHeigh = 35,\r
+ .lineBreakMode = UILabel::LINE_BREAK_ADAPT,\r
+ };\r
+\r
+ const char *durations[] = {"5秒", "10秒", "15秒"};\r
+\r
+ for (int i = 0; i < 3; i++)\r
+ {\r
+ labelconfig.top = 153 + (i * 120);\r
+ labelconfig.text = durations[i];\r
+ ScreenDurationLabel[i] = SetUpLabel(labelconfig);\r
+ if (ScreenDurationLabel[i] == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::ScreenDurationLabel[%d] is nullptr!", i);\r
+ return false;\r
+ }\r
+ }\r
\r
- View<ScreenDurationPresenter>::OnTearDownView();\r
- return;\r
+ return true;\r
}\r
\r
- void ScreenDurationView::OnStop()\r
+ // 亮屏时长视图“单选框”初始化\r
+ bool ScreenDurationView::SetUpScreenDurationViewRadioButton(void)\r
{\r
+ RadioButtonConfig radiobuttonconfig = {\r
+ .x = 300,\r
+ .w = 80,\r
+ .h = 80,\r
+ .select = "/user/res/CHECKBOX_ON.bin",\r
+ .unselect = "/user/res/CHECKBOX_OFF.bin",\r
+ };\r
+\r
+ int y_positions[] = {130, 250, 370};\r
+ const char *viewID[] = {SCREENDURATION_FIVESECONDS_VIEWID, SCREENDURATION_TENSECONDS_VIEWID, SCREENDURATION_FIFTEENSECONDS_VIEWID};\r
+ ScreenDurationRadiobuttonOnChangeListener *p_ScreenDurationRadiobuttonOnChangeListener = new ScreenDurationRadiobuttonOnChangeListener();\r
+ UICheckBox::OnChangeListener *SimplifiedChineseRadioButtonChange = static_cast<UICheckBox::OnChangeListener *>(p_ScreenDurationRadiobuttonOnChangeListener);\r
+ for (int i = 0; i < 3; i++)\r
+ {\r
+ radiobuttonconfig.y = y_positions[i];\r
+ radiobuttonconfig.viewId = viewID[i];\r
+ ScreenDurationRadioButton[i] = SetUpRadioButton(radiobuttonconfig);\r
+ if (ScreenDurationRadioButton[i] == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::ScreenDurationRadioButton[%d] is nullptr!", i);\r
+ return false;\r
+ }\r
+ p_ScreenDurationRadiobuttonOnChangeListener->SetRadioButton(ScreenDurationRadioButton[i],i);\r
+ ScreenDurationRadioButton[i]->SetOnChangeListener(SimplifiedChineseRadioButtonChange);\r
+ }\r
\r
- View<ScreenDurationPresenter>::OnStop();\r
- RootView::GetInstance()->RemoveAll();\r
- return;\r
+ return true;\r
+ }\r
+\r
+ // 亮屏时长视图初始化\r
+ UIScrollView *ScreenDurationView::ScreenDurationViewInit(void)\r
+ {\r
+ /* ------------------------ ScreenDurationScrollView ------------------------ */\r
+ if (!SetUpScrollView())\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ScreenDurationView::ScreenDurationScrollView is nullptr!");\r
+ return nullptr;\r
+ }\r
+ /* ----------------------------- BackGroundImage[] ---------------------------- */\r
+ if (!SetUpScreenDurationViewImageView())\r
+ {\r
+ return nullptr;\r
+ }\r
+ /* -------------------------- ScreenDurationLabel[] ------------------------- */\r
+ if (!SetUpScreenDurationViewLabel())\r
+ {\r
+ return nullptr;\r
+ }\r
+ /* ----------------------- ScreenDurationRadioButton[] ---------------------- */\r
+ if (!SetUpScreenDurationViewRadioButton())\r
+ {\r
+ return nullptr;\r
+ }\r
+ /* ----------------------------------- Add ---------------------------------- */\r
+ ScreenDurationScrollView->Add(ScreenDurationTitleLabel);\r
+ for (int i = 0; i < 3; i++)\r
+ {\r
+ ScreenDurationScrollView->Add(BackGroundImage[i]);\r
+ ScreenDurationScrollView->Add(ScreenDurationLabel[i]);\r
+ ScreenDurationScrollView->Add(ScreenDurationRadioButton[i]);\r
+ }\r
+ initViewStatus = true;\r
+ return ScreenDurationScrollView;\r
}\r
}
\ No newline at end of file