设置视图修改
author罗正yun <1732036298@qq.com>
Mon, 25 Dec 2023 03:18:03 +0000 (11:18 +0800)
committer罗正yun <1732036298@qq.com>
Mon, 25 Dec 2023 03:18:03 +0000 (11:18 +0800)
code/sdk/application/wearable/nativeapp/nativeui/settings/src/SettingView.cpp

index ce10877..efd8e3c 100755 (executable)
@@ -29,12 +29,6 @@ namespace OHOS
         "辅助功能",\r
         "系统",\r
     };\r
-\r
-    constexpr int BUTTON_X = 43;\r
-    constexpr int BUTTON_Y = 120;\r
-    constexpr int BUTTON_W = 380;\r
-    constexpr int BUTTON_H = 100;\r
-\r
 }\r
 namespace OHOS\r
 {\r
@@ -156,7 +150,7 @@ namespace OHOS
         for (int i = 0; i < 5; i++)\r
         {\r
             // 创建5个按钮\r
-            CreateSettingButton(scrollView, button[i], BUTTON_X, BUTTON_Y + 120 * i, BUTTON_W, BUTTON_H, SETTING_BUTTON_VIEW_ID[i], BUTTON_IMAGE_PATH, clicklisten);\r
+            CreateSettingButton(scrollView, button[i], 43, 120 + 120 * i, 380, 100, SETTING_BUTTON_VIEW_ID[i], BUTTON_IMAGE_PATH, clicklisten);\r
             // 创建5个icon图片\r
             CreateSettingImageView(scrollView, image[i], 62, 139 + 120 * i, 62, 62, ICON_IMAGE_PATH[i], 100);\r
             // 创建5个标签\r