diff --git a/README.md b/README.md index ca38489099d0e52775f8b058bd35bed164bb5baf..804a9fb3c58daf6c1d6872bbfd20e13ddaa9acee 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # mkloader -**本项目基于开源项目mkloader进行openharmony的移植和开发,可以通过项目标签以及github地址( https://github.com/nntuyen/mkloader )追踪到原项目版本** - #### 项目介绍 - 项目名称:加载动画 - 所属系列:openharmony的第三方组件适配移植 @@ -10,7 +8,6 @@ - 项目移植状态:主功能完成 - 调用差异:无 - 开发版本:sdk5,DevEco Studio2.1.0.301 beta3 -- 原项目Doc地址:https://github.com/nntuyen/mkloader #### 效果演示 diff --git a/entry/src/main/java/com/tuyenmonkey/sample/MainAbility.java b/entry/src/main/java/com/tuyenmonkey/sample/MainAbility.java index 5d41ef62c09eebc01e2b255c3c4945da8f95abae..ecd67ce34f174deb24dd866df8a718f68cd3382a 100644 --- a/entry/src/main/java/com/tuyenmonkey/sample/MainAbility.java +++ b/entry/src/main/java/com/tuyenmonkey/sample/MainAbility.java @@ -1,9 +1,30 @@ +/* + * 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.tuyenmonkey.sample; import com.tuyenmonkey.sample.slice.MainAbilitySlice; import ohos.aafwk.ability.Ability; import ohos.aafwk.content.Intent; +/** + * 主入口 + * + * @author fjh + * @since 2021-05-24 + */ public class MainAbility extends Ability { @Override public void onStart(Intent intent) { diff --git a/entry/src/main/java/com/tuyenmonkey/sample/MyApplication.java b/entry/src/main/java/com/tuyenmonkey/sample/MyApplication.java index 487e9c6b42aeb2e29011d84c3387f5b2bac013f5..d667ffcd7b7c802440f0f944e4a5c3e54dba5b36 100644 --- a/entry/src/main/java/com/tuyenmonkey/sample/MyApplication.java +++ b/entry/src/main/java/com/tuyenmonkey/sample/MyApplication.java @@ -1,11 +1,31 @@ +/* + * 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.tuyenmonkey.sample; import ohos.aafwk.ability.AbilityPackage; +/** + * 主应用 + * + * @author fjh + * @since 2021-05-24 + */ public class MyApplication extends AbilityPackage { @Override public void onInitialize() { super.onInitialize(); - } } diff --git a/entry/src/main/java/com/tuyenmonkey/sample/slice/MainAbilitySlice.java b/entry/src/main/java/com/tuyenmonkey/sample/slice/MainAbilitySlice.java index 45b74d83c1d211b4e23ece47b553876f2378989b..c4e36a7622294f00f2efd08fe1d4c126eaa494a4 100644 --- a/entry/src/main/java/com/tuyenmonkey/sample/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/tuyenmonkey/sample/slice/MainAbilitySlice.java @@ -1,11 +1,30 @@ +/* + * 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.tuyenmonkey.sample.slice; -import com.tuyenmonkey.mkloader.MKLoader; import com.tuyenmonkey.sample.ResourceTable; import ohos.aafwk.ability.AbilitySlice; import ohos.aafwk.content.Intent; -import ohos.agp.components.element.Element; +/** + * 主页面 + * + * @author fjh + * @since 2021-05-24 + */ public class MainAbilitySlice extends AbilitySlice { @Override public void onStart(Intent intent) { @@ -20,12 +39,10 @@ public class MainAbilitySlice extends AbilitySlice { @Override public void onActive() { super.onActive(); - } @Override public void onForeground(Intent intent) { super.onForeground(intent); } - }