void RefreshCardList(void);
void ExceedsCardCountEvent(bool isVisible);
+ UIList *GetAddCardList(void);
private:
void SetUpListInfo(void);
void SetUpListView(void);
void AddCardPresenter::OnResume()
{
RootView::GetInstance()->SetOnKeyActListener(this);
+ if (view_->GetAddCardList() != nullptr)
+ {
+ view_->GetAddCardList()->RequestFocus();
+ }
}
bool AddCardPresenter::OnDrag(UIView &view, const DragEvent &event)
}
}
+ UIList *AddCardView::GetAddCardList(void)
+ {
+ return &contentList_;
+ }
+
void AddCardView::SetUpListView(void)
{
contentList_.SetPosition(0, 0);
void OnStart() override;
void OnResume() override;
- void OnStop() override;
bool OnClick(UIView &view, const ClickEvent &event) override;
void OnScrollStart(int16_t index, UIView *view) override;
void OnScrollEnd(int16_t index, UIView *view) override;
void ShowAddView(bool show);
void RefreshCardList(void);
void SaveSelectCardIndex(void);
+ UIList *GetCardList(void);
private:
void SetUpListInfo(void);
void SetUpListView(void);
void SetCardPresenter::OnResume(void)
{
+ if (view_->GetCardList() != nullptr)
+ {
+ view_->GetCardList()->RequestFocus();
+ }
}
- void SetCardPresenter::OnStop(void)
- {
- }
bool SetCardPresenter::OnClick(UIView &view, const ClickEvent &event)
{
namespace OHOS {
SetCardView::SetCardView():contentList_(UIList::HORIZONTAL)
{
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SetCardView::SetCardView");
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SetCardView::SetCardView");
}
SetCardView::~SetCardView()
{
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SetCardView::~SetCardView");
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SetCardView::~SetCardView");
if (deleteView_ != nullptr) {
delete deleteView_;
deleteView_ = nullptr;
}
}
+UIList *SetCardView::GetCardList(void)
+{
+ return &contentList_;
+}
+
void SetCardView::SetUpListView(void)
{
addImg_.SetPosition(187, 10);