#ifndef NATIVE_LAUNCHER_H
#define NATIVE_LAUNCHER_H
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
namespace OHOS
{
#include "components/icon_adapter.h"
#include "AlipayPresenter.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "AlipayListAdapter.h"
#include "AlipayListItem.h"
#include "components/icon_adapter.h"
#include "AlipayPresenter.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "AlipayTransListAdapter.h"
#include "AlipayTransListItem.h"
#include "bundle_info.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "ohos_types.h"
#define APP_MAX_NUM 50
#include "UiConfig.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "ApplistModel.h"
#include "ApplistPresenter.h"
#include "string"\r
#include "PhoneService.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "message.h"\r
#include "msg_center.h"\r
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "classicbluetooth/include/ClassicBlueToothPresenter.h"\r
#include "ohos_types.h"
#include "UiConfig.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "CompassView.h"
namespace OHOS {
#include "ohos_types.h"
#include "UiConfig.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "CompassView.h"
#include "CompassPresenter.h"
#include "CompassModel.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include "DialViewGroup.h"
#include "dialupdate/include/DialUpdatePresenter.h"
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/findphone/src/FindPhonePresenter.cpp
*/
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include "findphone/include/FindPhonePresenter.h"
#include "common/key_code.h"
#include "KeyInputListener.h"
#include "common/key_code.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "View.h"
#include "MainViewSample.h"
#include "wearable_log.h"
#include <cstdint>
namespace OHOS {
enum UIResourceTextId : uint16_t {
- STR_IMAGE = 0,\r
- STR_PROGRESSBAR = 1,\r
- STR_SLIDEUNLOCK = 2,\r
- STR_LISTBOX = 3,\r
- STR_BUTTON = 4,\r
- STR_SCROLLVIEW = 5,\r
- STR_SCROLLGRID = 6,\r
- STR_CLOCK = 7,\r
- STR_DISTURBANCE = 8,\r
- STR_BRIGHT = 9,\r
- STR_PHONE = 10,\r
- STR_LANGAGE = 11,\r
- STR_ALARM = 12,\r
- STR_SYSTEM = 13,\r
- STR_SPO2 = 14,\r
- STR_COMPASS = 15,\r
- STR_INDOORWALK = 16,\r
- STR_WEATHER = 17,\r
- STR_SYSTEMSETTING = 18,\r
- STR_MAX_ID = 19,\r
+ STR_DANCING_GENERAL = 0,\r
+ STR_DANCING_BELLY = 1,\r
+ STR_DANCING_JAZZ = 2,\r
+ STR_DANCING_LATIN = 3,\r
+ STR_DANCING_BALLET = 4,\r
+ STR_DANCING_STREET = 5,\r
+ STR_DANCING_PUBLICSQUARE = 6,\r
+ STR_DANCING_ZUMBA = 7,\r
+ STR_DANCING_SOCIALDANCE = 8,\r
+ STR_DANCING_TAPDANCE = 9,\r
+ STR_MAX_ID = 10,\r
}; // UIResourceTextId\r
enum FontLanguageId : uint8_t {
-<language id="language" languageinfo="en" fontName="DroidSansFallback.ttf" direct="ltf">
-
- <lanstr id="STR_IMAGE" value="Image" size="21" direct="rtl" />
- <lanstr id="STR_PROGRESSBAR" value="ProgressBar" direct="mixed" />
- <lanstr id="STR_SLIDEUNLOCK" value="SlideUnlock" />
- <lanstr id="STR_LISTBOX" value="ListBox" />
- <lanstr id="STR_BUTTON" value="Button" />
- <lanstr id="STR_SCROLLVIEW" value="ScrollView" />
- <lanstr id="STR_SCROLLGRID" value="ScrollGrid" />
- <lanstr id="STR_CLOCK" value="Clock" />
- <lanstr id="STR_DISTURBANCE" value="Disturbance" />
- <lanstr id="STR_BRIGHT" value="Bright" />
- <lanstr id="STR_PHONE" value="Phone" />
- <lanstr id="STR_ALARM" value="Alarm" />
- <lanstr id="STR_SYSTEMSETTING" value="Setting" />
- <lanstr id="STR_LANGAGE" size="26" value="Language" />
- <lanstr id="STR_SPO2" value="SPO2" />
- <lanstr id="STR_COMPASS" value="Compass" />
- <lanstr id="STR_INDOORWALK" value="IndoorWalk" />
- <lanstr id="STR_WEATHER" value="Weathher" />
-
-</language>
\ No newline at end of file
+<language id="language" direct="ltf" languageinfo="en">
+ <lanstr id="STR_DANCING_GENERAL" value="General Dance" />
+ <lanstr id="STR_DANCING_BELLY" value="Belly Dance" />
+ <lanstr id="STR_DANCING_JAZZ" value="Jazz Dance" />
+ <lanstr id="STR_DANCING_LATIN" value="Latin Dance" />
+ <lanstr id="STR_DANCING_BALLET" value="Ballet" />
+ <lanstr id="STR_DANCING_STREET" value="Street Dance" />
+ <lanstr id="STR_DANCING_PUBLICSQUARE" value="Public Square Dance" />
+ <lanstr id="STR_DANCING_ZUMBA" value="Zumba" />
+ <lanstr id="STR_DANCING_SOCIALDANCE" value="Social Dance" />
+ <lanstr id="STR_DANCING_TAPDANCE" value="Tap Dance" />
+</language>
-<language id="language" direct="ltf" languageinfo="zh">
-
- <lanstr id="STR_IMAGE" value="图片" size="32" direct="rtl" />
- <lanstr id="STR_PROGRESSBAR" value="进度条" direct="mixed" />
- <lanstr id="STR_SLIDEUNLOCK" value="滑动解锁" />
- <lanstr id="STR_LISTBOX" value="列表" />
- <lanstr id="STR_BUTTON" value="按钮" />
- <lanstr id="STR_SCROLLVIEW" value="滚动视图" />
- <lanstr id="STR_SCROLLGRID" value="滚动网格" />
- <lanstr id="STR_CLOCK" value="时钟" />
- <lanstr id="STR_DISTURBANCE" value="勿扰" />
- <lanstr id="STR_BRIGHT" value="亮屏" />
- <lanstr id="STR_PHONE" value="找手机" />
- <lanstr id="STR_LANGAGE" size="30" value="语言" />
- <lanstr id="STR_ALARM" value="闹钟" />
- <lanstr id="STR_SYSTEM" value="设置" />
- <lanstr id="STR_SPO2" value="血氧饱和度" />
- <lanstr id="STR_COMPASS" value="指南针" />
- <lanstr id="STR_INDOORWALK" value="室内步行" />
- <lanstr id="STR_WEATHER" value="天气" />
-
-</language>
\ No newline at end of file
+<language id="language" direct="lft" languageinfo="zh">
+ <lanstr id="STR_DANCING_GENERAL" value="一般舞蹈" />
+ <lanstr id="STR_DANCING_BELLY" value="肚皮舞" />
+ <lanstr id="STR_DANCING_JAZZ" value="爵士舞" />
+ <lanstr id="STR_DANCING_LATIN" value="拉丁舞" />
+ <lanstr id="STR_DANCING_BALLET" value="芭蕾" />
+ <lanstr id="STR_DANCING_STREET" value="街舞" />
+ <lanstr id="STR_DANCING_PUBLICSQUARE" value="广场舞" />
+ <lanstr id="STR_DANCING_ZUMBA" value="尊巴" />
+ <lanstr id="STR_DANCING_SOCIALDANCE" value="社交舞" />
+ <lanstr id="STR_DANCING_TAPDANCE" value="踢踏舞" />
+</language>
#include <cstdint>
#include <map>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "MessagePresenter.h"
#include "message/include/MessageAdapter.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include "message/include/MessagePresenter.h"
#include "message/include/MessageAdapter.h"
#include "VocassistView.h"
#include "VocassistModel.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include "graphic_service.h"
* Create: 2022-01-18
*/
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "VocassistPresenter.h"
#include "PlayersModel.h"
#include "ui_service.h"
#include <limits>\r
#include "cmsis_os.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "PlayersModel.h"\r
#include "CallerLogModel.h"\r
#include "VocassistModel.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "string"\r
#include "phone/include/PhoneCallPresenter.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include "phone/include/PhoneCallingPresenter.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include "phone/include/PhoneCallupPresenter.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include "phone/include/PhoneDirPresenter.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include "phone/include/PhonePresenter.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include "phone/include/PhoneRingPresenter.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include "rotate/include/RotatePresenter.h"
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include "saveele/include/SaveBatPresenter.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include "saveele/include/SaveElePresenter.h"\r
#include "power_display_service.h"
#include "NativeAbility.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "MainViewSample.h"
#include "ui_screennotify.h"
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include "secondaryfunction/include/FastTrainingAttentionPresenter.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "secondaryfunction/include/SecondaryFunctionPresenter.h"\r
#include "secondaryfunction/include/SecondaryFunctionModel.h"\r
#include <cstdint>
#include <map>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "SettingItem.h"
#include "SettingPresenter.h"
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
*/\r
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
return nullptr;\r
}\r
Title->SetPosition(203, 52, 200, 35);\r
- Title->SetTextId(11);\r
- //Title->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);\r
+ Title->SetTextId(0);\r
+ // Title->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);\r
scrollView->Add(Title);\r
/* ------------------------------- Background ------------------------------- */\r
ImageConfig imageconfig = {\r
return nullptr;\r
}\r
SetRadioButtonSelectStatus(*SimplifiedChineseRadioButton, true);\r
- UICheckBox::OnChangeListener *SimplifiedChineseRadioButtonChange = static_cast<UICheckBox::OnChangeListener *>(new RadiobuttonOnChangeListener(SimplifiedChineseRadioButton,Title));\r
+ UICheckBox::OnChangeListener *SimplifiedChineseRadioButtonChange = static_cast<UICheckBox::OnChangeListener *>(new RadiobuttonOnChangeListener(SimplifiedChineseRadioButton, Title));\r
SimplifiedChineseRadioButton->SetOnChangeListener(SimplifiedChineseRadioButtonChange);\r
scrollView->Add(SimplifiedChineseRadioButton);\r
/* --------------------------- EnglishRadioButton --------------------------- */\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemLanguageView::EnglishRadioButton new fail!");\r
return nullptr;\r
}\r
- UICheckBox::OnChangeListener *EnglishRadioButtonChange = static_cast<UICheckBox::OnChangeListener *>(new RadiobuttonOnChangeListener(EnglishRadioButton,Title));\r
+ UICheckBox::OnChangeListener *EnglishRadioButtonChange = static_cast<UICheckBox::OnChangeListener *>(new RadiobuttonOnChangeListener(EnglishRadioButton, Title));\r
EnglishRadioButton->SetOnChangeListener(EnglishRadioButtonChange);\r
scrollView->Add(EnglishRadioButton);\r
initViewStatus = true;\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
#include "common/key_code.h"\r
#include "custom_utils.h"\r
#include "language/LanguageInit.h"\r
-\r
+#include "language/language_config/font/ui_resource_string.h"\r
namespace OHOS\r
{\r
\r
// 英语文本\r
g_planguage->ChangeLanguage(LanguageId::EN);\r
}\r
- m_label->SetTextId(11);\r
+ m_label->SetTextId(0);\r
// 强制刷新\r
m_label->ForceResetText();\r
RootView::GetInstance()->Invalidate();\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/include/TraingControlView.h"\r
\r
#include "common/image_cache_manager.h"\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/include/TraingDataView.h"\r
\r
#include "common/image_cache_manager.h"\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
\r
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/include/TraingDetailView.h"\r
\r
#include "common/image_cache_manager.h"\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingEnddataView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingEndnote2View.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingEndnoteView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingMusicView.h"
#include <ui_scroll_view.h>
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/include/TraingNomalView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/include/TraingSetCaluliView.h"\r
\r
#include "common/image_cache_manager.h"\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingSetDistView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingSetSeptView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/include/TraingSetTimeView.h"\r
\r
#include "common/image_cache_manager.h"\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
#include "traing/include/TraingSetView.h"\r
\r
#include "common/image_cache_manager.h"\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingStrongView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingWinView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/training_GPS/include/TraingGPSView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/training_GPS/include/TraingGPSbackView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/training_GPS/include/TraingGPSlackView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/training_GPS/include/TraingGPSlostView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/training_GPS/include/TraingGPSnoteView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/training_GPS/include/TraingGPSsetView.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
\r
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
\r
#include "traing/training_card/include/TraingCardView.h"\r
#include "common/image_cache_manager.h"\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
#include "traing/training_card/include/Training_CardView.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "wearable_log.h"
namespace OHOS
#include "traing/training_card/include/Training_CardView.h"\r
\r
#include "common/image_cache_manager.h"\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
-/***
+/***
* @Author: Caisking 3449750381@qq.com
* @Date: 2024-03-27 11:09:52
* @LastEditors: Caisking 3449750381@qq.com
#include "components/ui_label.h"
#include "components/ui_checkbox.h"
#include "AppViewIDs.h"
-
+#include "components/ui_label_ext.h"
+#include "language/language_config/font/ui_resource_string.h"
// 列表的适配器
namespace OHOS
{
typedef struct
{
AppViewId id;
- const char *label; // 标签
+ UIResourceTextId labelid; // 标签
} TraingDanceItem;
class TraingDanceAdapter : public AbstractAdapter
-
+/***
+ * @Author: Caisking 3449750381@qq.com
+ * @Date: 2024-03-27 15:24:12
+ * @LastEditors: Caisking 3449750381@qq.com
+ * @LastEditTime: 2024-03-28 16:46:53
+ * @FilePath: /sdk/application/wearable/fd230app/nativeui/traing/training_list_dance/include/TraingDanceItemView.h
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
+/***
+ * @Author: Caisking 3449750381@qq.com
+ * @Date: 2024-03-27 15:24:12
+ * @LastEditors: Caisking 3449750381@qq.com
+ * @LastEditTime: 2024-03-28 16:42:47
+ * @FilePath: /sdk/application/wearable/fd230app/nativeui/traing/training_list_dance/include/TraingDanceItemView.h
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
#ifndef TraingDance_ITEM_VIEW_H
#define TraingDance_ITEM_VIEW_H
#include "traing/training_list_dance/include/TraingDanceAdapter.h"
#include "components/ui_label_button.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
+#include "components/ui_label_ext.h"
#include "ohos_types.h"
namespace OHOS
private:
TraingDanceItemView(const TraingDanceItemView &);
UIImageView sbackground; // 背景
- UIImageView sicon; // 箭头
- UILabel sLabel; // 标签
- TraingDanceItem sItemInfo = {VIEW_INVALID, nullptr};
+ UIImageView sicon; // 箭头
+ UILabelExt sLabel; // 标签
+ TraingDanceItem sItemInfo = {VIEW_INVALID, STR_DANCING_GENERAL};
};
}
#include <cstdint>
#include <map>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "TraingDancePresenter.h"
#include "traing/training_list_dance/include/TraingDanceAdapter.h"
TraingDanceModel &operator=(const TraingDanceModel &);
virtual ~TraingDanceModel();
static const uint16_t TraingDanceListMaxNum = 10;
- TraingDanceItem TraingDances[TraingDanceListMaxNum] = {VIEW_INVALID, nullptr};
+ TraingDanceItem TraingDances[TraingDanceListMaxNum] = {VIEW_INVALID, STR_DANCING_GENERAL};
// std::map<int, AppViewId> TraingDanceIdToViewId;
bool btConnectStatus{false};
};
#include "traing/training_list_dance/include/TraingDanceItemView.h"
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
namespace OHOS
{
void TraingDanceItemView::SetItemInfo(const TraingDanceItem itemInfo)
{
sItemInfo = itemInfo;
- sLabel.SetText(itemInfo.label);
+ sLabel.SetTextId(itemInfo.labelid);
}
/// @brief 设置每一个itemview上的组件
#include "traing/training_list_dance/include/TraingDanceModel.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
namespace OHOS
{
return instance;
}
- static char *text[] = {"一般舞蹈", "肚皮舞", "爵士舞", "拉丁舞", "芭蕾", "街舞", "广场舞", "尊巴", "社交舞", "踢踏舞"};
+ // static char *text[] = {"一般舞蹈", "肚皮舞", "爵士舞", "拉丁舞", "芭蕾", "街舞", "广场舞", "尊巴", "社交舞", "踢踏舞"};
void TraingDanceModel::InitTraingDanceListItem()
{
- TraingDances[0] = {VIEW_TRAININGNOMAL, "一般舞蹈"};
- TraingDances[1] = {VIEW_TRAININGNOMAL, "肚皮舞"};
- TraingDances[2] = {VIEW_TRAININGNOMAL, "爵士舞"};
- TraingDances[3] = {VIEW_TRAININGNOMAL, "拉丁舞"};
- TraingDances[4] = {VIEW_TRAININGNOMAL, "芭蕾"};
- TraingDances[5] = {VIEW_TRAININGNOMAL, "街舞"};
- TraingDances[6] = {VIEW_TRAININGNOMAL, "广场舞"};
- TraingDances[7] = {VIEW_TRAININGNOMAL, "尊巴"};
- TraingDances[8] = {VIEW_TRAININGNOMAL, "社交舞"};
- TraingDances[9] = {VIEW_TRAININGNOMAL, "踢踏舞"};
+ TraingDances[0] = {VIEW_TRAININGNOMAL, STR_DANCING_GENERAL};
+ TraingDances[1] = {VIEW_TRAININGNOMAL, STR_DANCING_BELLY};
+ TraingDances[2] = {VIEW_TRAININGNOMAL, STR_DANCING_JAZZ};
+ TraingDances[3] = {VIEW_TRAININGNOMAL, STR_DANCING_LATIN};
+ TraingDances[4] = {VIEW_TRAININGNOMAL, STR_DANCING_BALLET};
+ TraingDances[5] = {VIEW_TRAININGNOMAL, STR_DANCING_STREET};
+ TraingDances[6] = {VIEW_TRAININGNOMAL, STR_DANCING_PUBLICSQUARE};
+ TraingDances[7] = {VIEW_TRAININGNOMAL, STR_DANCING_ZUMBA};
+ TraingDances[8] = {VIEW_TRAININGNOMAL, STR_DANCING_SOCIALDANCE};
+ TraingDances[9] = {VIEW_TRAININGNOMAL, STR_DANCING_TAPDANCE};
}
const TraingDanceItem *TraingDanceModel::GetTraingDancelistItems() const
*/
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "wearable_log.h"
#include "components/ui_label.h"
#include "components/ui_checkbox.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
// 列表的适配器
namespace OHOS
#include "traing/training_list_ice/include/TraingIceAdapter.h"
#include "components/ui_label_button.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "ohos_types.h"
namespace OHOS
#include <cstdint>
#include <map>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "TraingIcePresenter.h"
#include "traing/training_list_ice/include/TraingIceAdapter.h"
#include "traing/training_list_ice/include/TraingIceItemView.h"
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
namespace OHOS
{
#include "traing/training_list_ice/include/TraingIceModel.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
namespace OHOS
{
*/
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "wearable_log.h"
#include "components/ui_label.h"
#include "components/ui_checkbox.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
// 列表的适配器
namespace OHOS
#include "traing/training_list_limit/include/TraingLimitAdapter.h"
#include "components/ui_label_button.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "ohos_types.h"
namespace OHOS
#include <cstdint>
#include <map>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "TraingLimitPresenter.h"
#include "traing/training_list_limit/include/TraingLimitAdapter.h"
#include "traing/training_list_limit/include/TraingLimitItemView.h"
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
namespace OHOS
{
#include "traing/training_list_limit/include/TraingLimitModel.h"
#include "common/image_cache_manager.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
namespace OHOS
{
*/\r
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/include/TraingModel.h"\r
#include "traing/Training_UiConfig.h"\r
\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "wearable_log.h"\r
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/Training_UiConfig.h"\r
\r
#include "common/image_cache_manager.h"\r
+#include "components/ui_label_ext.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include <iostream>
#include <cstdint>
#include <map>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "UISamplePresenter.h"
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
\r
#include "weather/include/FutureWeatherPresenter.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "weather/include/GetWeatherDataErrorPresenter.h"\r
\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "NativeAbility.h"\r
#include "weather/include/MainWeatherPresenter.h"\r
#include "common/key_code.h"\r
#include <cstdint>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "components/ui_view.h"
#include "NativeAbility.h"
#ifndef NATIVE_LAUNCHER_H
#define NATIVE_LAUNCHER_H
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
namespace OHOS {
class NativeLauncher {
#include "MainView.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "wearable_log.h"
#include "components/icon_adapter.h"
#include "AlipayPresenter.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "AlipayListAdapter.h"
#include "AlipayListItem.h"
#include "components/icon_adapter.h"
#include "AlipayPresenter.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "AlipayTransListAdapter.h"
#include "AlipayTransListItem.h"
#include "bundle_info.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "ohos_types.h"
#define APP_MAX_NUM 50
#include "string"\r
#include "PhoneService.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "message.h"\r
#include "msg_center.h"\r
\r
#include "ohos_types.h"\r
#include "UiConfig.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "CompassView.h"\r
\r
namespace OHOS {\r
#include "ohos_types.h"\r
#include "UiConfig.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "CompassView.h"\r
#include "CompassPresenter.h"\r
#include "CompassModel.h"\r
#include "KeyInputListener.h"
#include "common/key_code.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "View.h"
#include "MainViewSample.h"
#include "wearable_log.h"
#include "VocassistView.h"
#include "VocassistModel.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "NativeAbility.h"
#include "graphic_service.h"
* Create: 2022-01-18
*/
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "VocassistPresenter.h"
#include "PlayersModel.h"
#include "ui_service.h"
#include <limits>\r
#include "cmsis_os.h"\r
#include "AppViewIDs.h"\r
+#include "components/ui_label_ext.h"\r
#include "PlayersModel.h"\r
#include "CallerLogModel.h"\r
#include "VocassistModel.h"\r
#include "power_display_service.h"
#include "NativeAbility.h"
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "MainViewSample.h"
#include "ui_screennotify.h"
#include <cstdint>
#include <map>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "SettingItem.h"
#include "SettingPresenter.h"
#include <cstdint>
#include <map>
#include "AppViewIDs.h"
+#include "components/ui_label_ext.h"
#include "UiConfig.h"
#include "UISamplePresenter.h"
#include <cstdint>
namespace OHOS {
enum UIResourceTextId : uint16_t {
- STR_IMAGE = 0,\r
- STR_PROGRESSBAR = 1,\r
- STR_SLIDEUNLOCK = 2,\r
- STR_LISTBOX = 3,\r
- STR_BUTTON = 4,\r
- STR_SCROLLVIEW = 5,\r
- STR_SCROLLGRID = 6,\r
- STR_CLOCK = 7,\r
- STR_DISTURBANCE = 8,\r
- STR_BRIGHT = 9,\r
- STR_PHONE = 10,\r
- STR_LANGAGE = 11,\r
- STR_ALARM = 12,\r
- STR_SYSTEM = 13,\r
- STR_SPO2 = 14,\r
- STR_COMPASS = 15,\r
- STR_INDOORWALK = 16,\r
- STR_WEATHER = 17,\r
- STR_SYSTEMSETTING = 18,\r
- STR_MAX_ID = 19,\r
+ STR_DANCING_GENERAL = 0,\r
+ STR_DANCING_BELLY = 1,\r
+ STR_DANCING_JAZZ = 2,\r
+ STR_DANCING_LATIN = 3,\r
+ STR_DANCING_BALLET = 4,\r
+ STR_DANCING_STREET = 5,\r
+ STR_DANCING_PUBLICSQUARE = 6,\r
+ STR_DANCING_ZUMBA = 7,\r
+ STR_DANCING_SOCIALDANCE = 8,\r
+ STR_DANCING_TAPDANCE = 9,\r
+ STR_MAX_ID = 10,\r
}; // UIResourceTextId\r
enum FontLanguageId : uint8_t {