#ifndef NATIVE_LAUNCHER_H
#define NATIVE_LAUNCHER_H
#include "AppViewIDs.h"
-#include "components/ui_label_ext.h"
namespace OHOS
{
#include "AlipayPresenter.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "AlipayListAdapter.h"
#include "AlipayListItem.h"
#include "AlipayPresenter.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "AlipayTransListAdapter.h"
#include "AlipayTransListItem.h"
#include "bundle_info.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "ohos_types.h"
#define APP_MAX_NUM 50
#include "UiConfig.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "ApplistModel.h"
#include "ApplistPresenter.h"
#include "PhoneService.h"\r
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "message.h"\r
#include "msg_center.h"\r
\r
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "classicbluetooth/include/ClassicBlueToothPresenter.h"\r
#include "UiConfig.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "CompassView.h"
namespace OHOS {
#include "UiConfig.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "CompassView.h"
#include "CompassPresenter.h"
#include "CompassModel.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include "DialViewGroup.h"
#include "dialupdate/include/DialUpdatePresenter.h"
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
#include "View.h"
#include "components/ui_view_group.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "components/ui_image_animator.h"
#include "components/ui_label_button_ext.h"
#include "components/ui_image_view.h"
*/
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include "findphone/include/FindPhonePresenter.h"
#include "common/key_code.h"
#include "common/key_code.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "View.h"
#include "MainViewSample.h"
#include "wearable_log.h"
{"uz", "O‘zbek", "乌兹别克语"},
{"az", "Azərbaycan dili", "阿塞拜疆语"}};
- static const char *en = "user/res/language_config/font/en.lang";
- static const char *zh_CN = "user/res/language_config/font/zh.lang";
+ static const char *en = "user/res/font/en.lang";
+ static const char *zh_CN = "user/res/font/zh.lang";
static const uint8_t langcount = 2;
const char *resFiles[langcount] = {zh_CN, en};
--- /dev/null
+/*
+* Copyright (c) xxxxxxxx Technologies Co., Ltd. 2021-2021. All rights reserved.
+* Description: language
+* Author: Graphic develop team
+* Create: 2021-07-06
+*/
+
+#ifndef UI_RESOURCE_STRING_H
+#define UI_RESOURCE_STRING_H
+#include <cstdint>
+namespace OHOS {
+enum UIResourceTextId : uint16_t {
+ STR_ICE_SPORTS = 0,\r
+ STR_ICE_SKATING = 1,\r
+ STR_ICE_HOCKEY = 2,\r
+ STR_ICE_CURLING = 3,\r
+ STR_ICE_SNOWMOBILING = 4,\r
+ STR_ICE_SLED = 5,\r
+ STR_ICE_BIATHLON = 6,\r
+ STR_ICE_CROSSCOUNTRYSKING = 7,\r
+ STR_ICE_SKIING = 8,\r
+ STR_ICE_SNOWBOARDING = 9,\r
+ STR_ICE_SNOWSHOEING = 10,\r
+ STR_ICE_SNOWSPORTS = 11,\r
+ STR_DANCING_GENERAL = 12,\r
+ STR_DANCING_BELLY = 13,\r
+ STR_DANCING_JAZZ = 14,\r
+ STR_DANCING_LATIN = 15,\r
+ STR_DANCING_BALLET = 16,\r
+ STR_DANCING_STREET = 17,\r
+ STR_DANCING_PUBLICSQUARE = 18,\r
+ STR_DANCING_ZUMBA = 19,\r
+ STR_DANCING_SOCIALDANCE = 20,\r
+ STR_DANCING_TAPDANCE = 21,\r
+ STR_ICE_SNOW_SPORTS = 22,\r
+ STR_MAX_ID = 23,\r
+}; // UIResourceTextId\r
+
+enum FontLanguageId : uint8_t {
+ LANGUAGE_ID_ZH,\r
+ LANGUAGE_ID_EN,\r
+ LANGUAGE_ID_MAX\r
+}; // UITextLanguageTextId\r
+}\r
+#endif /* UI_RESOURCE_STRING_H */\r
+++ /dev/null
-{
- "languages": {
- "zh": {
- "path": "user/res/language_config/font/zh.lang"
- },
- "en": {
- "path": "user/res/language_config/font/en.lang"
- }
- },
- "languages_satuas": 0
-}
\ No newline at end of file
+++ /dev/null
-/*
-* Copyright (c) xxxxxxxx Technologies Co., Ltd. 2021-2021. All rights reserved.
-* Description: language
-* Author: Graphic develop team
-* Create: 2021-07-06
-*/
-
-#ifndef UI_RESOURCE_STRING_H
-#define UI_RESOURCE_STRING_H
-#include <cstdint>
-namespace OHOS {
-enum UIResourceTextId : uint16_t {
- 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_ZH,\r
- LANGUAGE_ID_EN,\r
- LANGUAGE_ID_MAX\r
-}; // UITextLanguageTextId\r
-}\r
-#endif /* UI_RESOURCE_STRING_H */\r
<language id="language" direct="ltf" languageinfo="en">
+
+ <lanstr id="STR_ICE_SPORTS" value="Ice Sports" />
+ <lanstr id="STR_ICE_SKATING" value="Skating" />
+ <lanstr id="STR_ICE_HOCKEY" value="Hockey" />
+ <lanstr id="STR_ICE_CURLING" value="Curling" />
+ <lanstr id="STR_ICE_SNOWMOBILING" value="Snowmobiling" />
+ <lanstr id="STR_ICE_SLED" value="Sled" />
+ <lanstr id="STR_ICE_BIATHLON" value="Biathlon" />
+ <lanstr id="STR_ICE_CROSSCOUNTRYSKING" value="Cross-country Skiing" />
+ <lanstr id="STR_ICE_SKIING" value="Skiing" />
+ <lanstr id="STR_ICE_SNOWBOARDING" value="Snowboarding" />
+ <lanstr id="STR_ICE_SNOWSHOEING" value="Snowshoeing" />
+ <lanstr id="STR_ICE_SNOW_SPORTS" value="Ice Snow Sports" />
+
<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_ZUMBA" value="Zumba" />
<lanstr id="STR_DANCING_SOCIALDANCE" value="Social Dance" />
<lanstr id="STR_DANCING_TAPDANCE" value="Tap Dance" />
+
+
</language>
<language id="language" direct="lft" languageinfo="zh">
+
+ <lanstr id="STR_ICE_SPORTS" value="一般冰上运动" />
+ <lanstr id="STR_ICE_SKATING" value="溜冰" />
+ <lanstr id="STR_ICE_HOCKEY" value="冰球" />
+ <lanstr id="STR_ICE_CURLING" value="冰石壶/冰壶" />
+ <lanstr id="STR_ICE_SNOWMOBILING" value="雪上摩托车" />
+ <lanstr id="STR_ICE_SLED" value="雪橇" />
+ <lanstr id="STR_ICE_BIATHLON" value="冬季两项" />
+ <lanstr id="STR_ICE_CROSSCOUNTRYSKING" value="越野滑雪" />
+ <lanstr id="STR_ICE_SKIING" value="滑雪" />
+ <lanstr id="STR_ICE_SNOWBOARDING" value="单板滑雪/滑雪板" />
+ <lanstr id="STR_ICE_SNOWSHOEING" value="雪鞋健行" />
+ <lanstr id="STR_ICE_SNOWSPORTS" value="雪地运动" />
+
<lanstr id="STR_DANCING_GENERAL" value="一般舞蹈" />
<lanstr id="STR_DANCING_BELLY" value="肚皮舞" />
<lanstr id="STR_DANCING_JAZZ" value="爵士舞" />
#include <map>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "MessagePresenter.h"
#include "message/include/MessageAdapter.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include "message/include/MessagePresenter.h"
#include "message/include/MessageAdapter.h"
#include "VocassistModel.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include "graphic_service.h"
*/
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "VocassistPresenter.h"
#include "PlayersModel.h"
#include "ui_service.h"
#include "cmsis_os.h"\r
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
#include "components/ui_image_view.h"\r
#include "components/ui_button.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
namespace OHOS\r
{\r
\r
#include "components/ui_circle_progress.h"\r
#include "components/ui_checkbox.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "components/ui_button.h"\r
#define APP_RES_PATH "/user/res"\r
namespace OHOS\r
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include "rotate/include/RotatePresenter.h"
\r
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include "saveele/include/SaveElePresenter.h"\r
#include "NativeAbility.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "MainViewSample.h"
#include "ui_screennotify.h"
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
#include "secondaryfunction/include/SecondaryFunctionPresenter.h"\r
#include "secondaryfunction/include/SecondaryFunctionModel.h"\r
#include <map>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "SettingItem.h"
#include "SettingPresenter.h"
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
#include "graphic_math.h"\r
#include "string.h"\r
#include "components/ui_radio_button.h"\r
#include "components/ui_image_view.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
namespace OHOS\r
{\r
class SystemLanguageView\r
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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
-#include "language/language_config/font/ui_resource_string.h"\r
+#include "language/font/ui_resource_string.h"\r
namespace OHOS\r
{\r
\r
bool RadiobuttonOnChangeListener::OnChange(UICheckBox::UICheckBoxState state)\r
{\r
language *g_planguage;\r
- // static const char *en = "user/res/language_config/font/en.lang";\r
- // static const char *zh_CN = "user/res/language_config/font/zh.lang";\r
+ // static const char *en = "user/res/font/en.lang";\r
+ // static const char *zh_CN = "user/res/font/zh.lang";\r
switch (state)\r
{\r
case UICheckBox::SELECTED:\r
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
\r
#include "common/image_cache_manager.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
\r
#include "common/image_cache_manager.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
\r
#include "common/image_cache_manager.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include <ui_scroll_view.h>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
\r
#include "common/image_cache_manager.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
\r
#include "common/image_cache_manager.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
\r
#include "common/image_cache_manager.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/training_card/include/TraingCardView.h"\r
#include "common/image_cache_manager.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "wearable_log.h"
namespace OHOS
\r
#include "common/image_cache_manager.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "UiConfig.h"\r
#include "ui_resource_image.h"\r
#include <ui_scroll_view.h>\r
#include "components/ui_checkbox.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
-#include "language/language_config/font/ui_resource_string.h"
+#include"language/font/ui_resource_string.h"
+#include "language/font/ui_resource_string.h"
// 列表的适配器
namespace OHOS
{
#include "components/ui_label_button.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "ohos_types.h"
namespace OHOS
#include <map>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "TraingDancePresenter.h"
#include "traing/training_list_dance/include/TraingDanceAdapter.h"
#include "traing/training_list_dance/include/TraingDanceModel.h"
#include "components/ui_label_button_ext.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
namespace OHOS
{
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
namespace OHOS
{
#include "traing/training_list_dance/include/TraingDanceModel.h"
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
namespace OHOS
{
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include "traing/Training_UiConfig.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "wearable_log.h"
TraingDanceList->SetMaxScrollDistance(MAX_SCR_DIS);
// 增加表冠控制
- TraingDanceList->SetRotateFactor(2);
- TraingDanceList->RequestFocus();
+ scrollView->SetRotateFactor(2);
+ scrollView->RequestFocus();
}
UIList *TraingDanceView::GetList()
{
#include "traing/training_list_fitness/include/TraingFitnessModel.h"
#include "components/ui_label_button_ext.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
namespace OHOS
{
-/***
+/***
* @Author: Caisking 3449750381@qq.com
* @Date: 2024-03-27 11:09:52
* @LastEditors: Caisking 3449750381@qq.com
- * @LastEditTime: 2024-03-27 15:25:46
+ * @LastEditTime: 2024-03-28 19:54:05
* @FilePath: /sdk/application/wearable/fd230app/nativeui/traing/training_list_ice/include/TraingIceAdapter.h
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
#include "components/ui_checkbox.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
// 列表的适配器
namespace OHOS
typedef struct
{
AppViewId id;
- const char *label; // 标签
+ UIResourceTextId labelid; // 标签
} TraingIceItem;
class TraingIceAdapter : public AbstractAdapter
#include "components/ui_label_button.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "ohos_types.h"
namespace OHOS
TraingIceItemView(const TraingIceItemView &);
UIImageView sbackground; // 背景
UIImageView sicon; // 箭头
- UILabel sLabel; // 标签
- TraingIceItem sItemInfo = {VIEW_INVALID, nullptr};
+ UILabelExt sLabel; // 标签
+ TraingIceItem sItemInfo = {VIEW_INVALID, STR_ICE_SPORTS};
};
}
#include <map>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "TraingIcePresenter.h"
#include "traing/training_list_ice/include/TraingIceAdapter.h"
TraingIceModel &operator=(const TraingIceModel &);
virtual ~TraingIceModel();
static const uint16_t TraingIceListMaxNum = 12;
- TraingIceItem TraingIces[TraingIceListMaxNum] = {VIEW_INVALID, nullptr};
+ TraingIceItem TraingIces[TraingIceListMaxNum] = {VIEW_INVALID, STR_ICE_SPORTS};
// std::map<int, AppViewId> TraingIceIdToViewId;
bool btConnectStatus{false};
};
#include "traing/training_list_ice/include/TraingIceModel.h"
#include "components/ui_label_button_ext.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
namespace OHOS
{
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
namespace OHOS
{
void TraingIceItemView::SetItemInfo(const TraingIceItem itemInfo)
{
sItemInfo = itemInfo;
- sLabel.SetText(itemInfo.label);
+ sLabel.SetTextId(itemInfo.labelid);
}
/// @brief 设置每一个itemview上的组件
#include "traing/training_list_ice/include/TraingIceModel.h"
#include "common/image_cache_manager.h"
#include "components/ui_label_ext.h"
+#include "language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include "language/font/ui_resource_string.h"
namespace OHOS
{
void TraingIceModel::InitTraingIceListItem()
{
- TraingIces[0] = {VIEW_TRAININGNOMAL, "一般冰上运动"};
- TraingIces[1] = {VIEW_TRAININGNOMAL, "溜冰"};
- TraingIces[2] = {VIEW_TRAININGNOMAL, "冰球"};
- TraingIces[3] = {VIEW_TRAININGNOMAL, "冰石壶/冰壶"};
- TraingIces[4] = {VIEW_TRAININGNOMAL, "雪上摩托车"};
- TraingIces[5] = {VIEW_TRAININGNOMAL, "雪橇"};
- TraingIces[6] = {VIEW_TRAININGNOMAL, "冬季两项"};
- TraingIces[7] = {VIEW_TRAININGNOMAL, "越野滑雪"};
- TraingIces[8] = {VIEW_TRAININGNOMAL, "滑雪"};
- TraingIces[9] = {VIEW_TRAININGNOMAL, "单板滑雪/滑雪板"};
- TraingIces[10] = {VIEW_TRAININGNOMAL, "雪鞋健行"};
- TraingIces[11] = {VIEW_TRAININGNOMAL, "雪地运动"};
+ TraingIces[0] = {VIEW_TRAININGNOMAL, STR_ICE_SPORTS};
+ TraingIces[1] = {VIEW_TRAININGNOMAL, STR_ICE_SKATING};
+ TraingIces[2] = {VIEW_TRAININGNOMAL, STR_ICE_HOCKEY};
+ TraingIces[3] = {VIEW_TRAININGNOMAL, STR_ICE_CURLING};
+ TraingIces[4] = {VIEW_TRAININGNOMAL, STR_ICE_SNOWMOBILING};
+ TraingIces[5] = {VIEW_TRAININGNOMAL, STR_ICE_SLED};
+ TraingIces[6] = {VIEW_TRAININGNOMAL, STR_ICE_BIATHLON};
+ TraingIces[7] = {VIEW_TRAININGNOMAL, STR_ICE_CROSSCOUNTRYSKING};
+ TraingIces[8] = {VIEW_TRAININGNOMAL, STR_ICE_SKIING};
+ TraingIces[9] = {VIEW_TRAININGNOMAL, STR_ICE_SNOWBOARDING};
+ TraingIces[10] = {VIEW_TRAININGNOMAL, STR_ICE_SNOWSHOEING};
+ TraingIces[11] = {VIEW_TRAININGNOMAL, STR_ICE_SNOW_SPORTS};
}
-
const TraingIceItem *TraingIceModel::GetTraingIcelistItems() const
{
return TraingIces;
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
+/***
+ * @Author: Caisking 3449750381@qq.com
+ * @Date: 2024-03-26 09:46:17
+ * @LastEditors: Caisking 3449750381@qq.com
+ * @LastEditTime: 2024-03-28 19:59:38
+ * @FilePath: /sdk/application/wearable/fd230app/nativeui/traing/training_list_ice/src/TraingIceView.cpp
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
#include "traing/training_list_ice/include/TraingIceView.h"
#include "traing/training_list_ice/include/TraingIcePresenter.h"
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "wearable_log.h"
TraingIceList->SetMaxScrollDistance(MAX_SCR_DIS);
// 增加表冠控制
- TraingIceList->SetRotateFactor(2);
- TraingIceList->RequestFocus();
+ scrollView->SetRotateFactor(2);
+ scrollView->RequestFocus();
}
UIList *TraingIceView::GetList()
{
#include "components/ui_checkbox.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
// 列表的适配器
namespace OHOS
#include "components/ui_label_button.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "ohos_types.h"
namespace OHOS
#include <map>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "TraingLimitPresenter.h"
#include "traing/training_list_limit/include/TraingLimitAdapter.h"
#include "traing/training_list_limit/include/TraingLimitModel.h"
#include "components/ui_label_button_ext.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
namespace OHOS
{
#include "traing/include/TraingModel.h"
#include "traing/Training_UiConfig.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "ui_resource_image.h"
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
namespace OHOS
{
\r
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
#include "traing/Training_UiConfig.h"\r
\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "UiConfig.h"\r
#include "wearable_log.h"\r
\r
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
\r
#include <iostream>\r
\r
#include "common/image_cache_manager.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.h"
#include "NativeAbility.h"
#include <iostream>
#include <map>
#include "AppViewIDs.h"
#include "components/ui_label_ext.h"
+#include"language/font/ui_resource_string.h"
#include "UiConfig.h"
#include "UISamplePresenter.h"
#include "components/ui_view_group.h"\r
#include "components/ui_scroll_view.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.h"\r
#include "components/ui_image_animator.h"\r
#include "config/include/ConfigModel.h"\r
namespace OHOS\r
#include "AppViewIDs.h"\r
#include "components/ui_label_ext.h"\r
+#include"language/font/ui_resource_string.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"language/font/ui_resource_string.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"language/font/ui_resource_string.h"\r
#include "NativeAbility.h"\r
#include "weather/include/MainWeatherPresenter.h"\r
#include "common/key_code.h"\r
--- /dev/null
+/*
+* Copyright (c) xxxxxxxx Technologies Co., Ltd. 2021-2021. All rights reserved.
+* Description: language
+* Author: Graphic develop team
+* Create: 2021-07-06
+*/
+
+#ifndef UI_RESOURCE_STRING_H
+#define UI_RESOURCE_STRING_H
+#include <cstdint>
+namespace OHOS {
+enum UIResourceTextId : uint16_t {
+ STR_ICE_SPORTS = 0,\r
+ STR_ICE_SKATING = 1,\r
+ STR_ICE_HOCKEY = 2,\r
+ STR_ICE_CURLING = 3,\r
+ STR_ICE_SNOWMOBILING = 4,\r
+ STR_ICE_SLED = 5,\r
+ STR_ICE_BIATHLON = 6,\r
+ STR_ICE_CROSSCOUNTRYSKING = 7,\r
+ STR_ICE_SKIING = 8,\r
+ STR_ICE_SNOWBOARDING = 9,\r
+ STR_ICE_SNOWSHOEING = 10,\r
+ STR_ICE_SNOWSPORTS = 11,\r
+ STR_DANCING_GENERAL = 12,\r
+ STR_DANCING_BELLY = 13,\r
+ STR_DANCING_JAZZ = 14,\r
+ STR_DANCING_LATIN = 15,\r
+ STR_DANCING_BALLET = 16,\r
+ STR_DANCING_STREET = 17,\r
+ STR_DANCING_PUBLICSQUARE = 18,\r
+ STR_DANCING_ZUMBA = 19,\r
+ STR_DANCING_SOCIALDANCE = 20,\r
+ STR_DANCING_TAPDANCE = 21,\r
+ STR_ICE_SNOW_SPORTS = 22,\r
+ STR_MAX_ID = 23,\r
+}; // UIResourceTextId\r
+
+enum FontLanguageId : uint8_t {
+ LANGUAGE_ID_ZH,\r
+ LANGUAGE_ID_EN,\r
+ LANGUAGE_ID_MAX\r
+}; // UITextLanguageTextId\r
+}\r
+#endif /* UI_RESOURCE_STRING_H */\r
+++ /dev/null
-{
- "languages": {
- "zh": {
- "path": "user/res/language_config/font/zh.lang"
- },
- "en": {
- "path": "user/res/language_config/font/en.lang"
- }
- },
- "languages_satuas": 0
-}
\ No newline at end of file
+++ /dev/null
-/*
-* Copyright (c) xxxxxxxx Technologies Co., Ltd. 2021-2021. All rights reserved.
-* Description: language
-* Author: Graphic develop team
-* Create: 2021-07-06
-*/
-
-#ifndef UI_RESOURCE_STRING_H
-#define UI_RESOURCE_STRING_H
-#include <cstdint>
-namespace OHOS {
-enum UIResourceTextId : uint16_t {
- 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_ZH,\r
- LANGUAGE_ID_EN,\r
- LANGUAGE_ID_MAX\r
-}; // UITextLanguageTextId\r
-}\r
-#endif /* UI_RESOURCE_STRING_H */\r