AppItemView &operator = (const AppItemView &);
UIImageView icon_;
- UILabel label_;
- AppItem itemInfo_ = { VIEW_INVALID, nullptr, nullptr, nullptr, nullptr };
+ UILabelExt label_;
+ AppItem itemInfo_ = { VIEW_INVALID, nullptr, nullptr, nullptr, nullptr, nullptr, 0 };
};
class HexagonsItemView : public UIImageView {
*/
#include "applist/include/ApplistPresenter.h"
+#include "applist/include/ApplistView.h"
#include "ability_manager.h"
#include "securec.h"
#include "components/ui_hexagons_list.h"
} else if (GetCurrentStyle() == AppListStyle::WATERFALL_STYLE) {
view_->ResumeWaterFallDraggable();
}
+ //申请焦点
+ view_->ApplistOnResumeRequestFocus();
RootView::GetInstance()->SetOnKeyActListener(KeyInputListener::GetInstance());
}
ArcScaleList_->EnableAutoAlign(true);
ArcScaleList_->SetItemSpace(20);
ArcScaleList_->SetSelectPosition(ARC_SCALE_LIST_HEIGHT / 2);
- ArcScaleList_->SetRotateFactor(1.0);
+ ArcScaleList_->SetRotateFactor(5.0);
ArcScaleList_->RequestFocus();
ArcScaleList_->RefreshList();
contentList_->SetScrollStateListener(presenter_);
contentList_->SetMaxScrollDistance(MAX_SCROLL_DIS);
contentList_->SetYScrollBarVisible(true);
+ contentList_->SetRotateFactor(5.0);
+ contentList_->RequestFocus();
dragListener_ = new AppListOnDragListener();
if (dragListener_ == nullptr) {
int16_t angle = EasingEquation::LinearEaseNone(0, 270, animator_->GetRunTime(), animator_->GetTime());
footView->RotatePlanes(angle, rotateStart, rotateEnd);
}
+
+void ApplistView::ApplistOnResumeRequestFocus(void)
+{
+ if(nullptr != contentList_)
+ {
+ contentList_->RequestFocus();//直线列表
+ }
+ if(nullptr != ArcScaleList_)
+ {
+ ArcScaleList_->RequestFocus();//弧形列表
+ }
+ if(nullptr != hexagonsList_)
+ {
+ hexagonsList_->RequestFocus();//蜂窝
+ }
+ if(nullptr != CircleListScrollView)
+ {
+ CircleListScrollView->RequestFocus();//拨号盘
+ }
+ if(nullptr != waterfallList_)
+ {
+ waterfallList_->RequestFocus();//瀑布流
+ }
+}
}