diff --git a/entry/src/main/config.json b/entry/src/main/config.json index d861770714233e5a502f30c2040579d7b397bd3c..c8fa894e7b7a6bba4b402d9c23bb7c28a4f4f7c1 100644 --- a/entry/src/main/config.json +++ b/entry/src/main/config.json @@ -36,14 +36,6 @@ ] } ], - "name": "com.zhw.cmcm.MainAbility", - "icon": "$media:icon", - "description": "$string:mainability_description", - "label": "$string:app_name", - "type": "page", - "launchType": "standard" - }, - { "name": "com.zhw.cmcm.FeatureAbility", "icon": "$media:icon", "description": "$string:mainability_description", diff --git a/entry/src/main/java/com/zhw/cmcm/MainAbility.java b/entry/src/main/java/com/zhw/cmcm/MainAbility.java deleted file mode 100644 index 1f4663f238b76eb07bb5cee85c2c067525fcdff9..0000000000000000000000000000000000000000 --- a/entry/src/main/java/com/zhw/cmcm/MainAbility.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * - * Copyright (C) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain an copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package com.zhw.cmcm; - -import ohos.aafwk.ability.Ability; -import ohos.aafwk.content.Intent; -import ohos.aafwk.content.Operation; - -/** - * MainAbility - * - * @author:username - * @since 2021-05-31 - */ -public class MainAbility extends Ability { - @Override - public void onStart(Intent intent) { - super.onStart(intent); - super.setUIContent(ResourceTable.Layout_ability_main); - startAbility(this, FeatureAbility.class.getName()); - } - - @Override - protected void onActive() { - super.onActive(); - } - - @Override - public void onStop() { - super.onStop(); - } - - /** - * 启动activity - * - * @param ability - * @param name - */ - public void startAbility(Ability ability, String name) { - Intent intent = new Intent(); - Operation operation = new Intent.OperationBuilder() - .withDeviceId("") - .withBundleName(ability.getBundleName()) - .withAbilityName(name) - .build(); - intent.setOperation(operation); - ability.startAbility(intent); - } -} diff --git a/entry/src/main/js/default/common/comp/colorText.css b/entry/src/main/js/default/common/comp/colorText.css index 32c6fb5ccdfa55770066bbf6dddc5eb54f14a3d8..85e64b5964bf3f92456f552906643c188ccc0d4c 100644 --- a/entry/src/main/js/default/common/comp/colorText.css +++ b/entry/src/main/js/default/common/comp/colorText.css @@ -9,11 +9,6 @@ .title { font-size: 26px; - padding: 0% 3px; + padding: 0 3px; color: gray; } - -.clear{ - margin-top: 30px; - padding: 10px 20px; -} \ No newline at end of file diff --git a/entry/src/main/resources/base/layout/ability_main.xml b/entry/src/main/resources/base/layout/ability_main.xml deleted file mode 100644 index 1fe40a533f198bc7df7fb97417a18e4fd0d543a9..0000000000000000000000000000000000000000 --- a/entry/src/main/resources/base/layout/ability_main.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - -