From 891a87d3995dd9968f6aa3054216ff54a63fd259 Mon Sep 17 00:00:00 2001 From: chentianyu <18756170827@163.com> Date: Thu, 8 Jul 2021 15:15:42 +0800 Subject: [PATCH] =?UTF-8?q?Materialscrollbar=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AnimationManager.java | 15 ++++++++++++ .../materialscrollbardemo/Hand.java | 16 +++++++++++++ .../materialscrollbardemo/Indicator.java | 16 +++++++++++++ .../LayoutWrapContentUpdater.java | 2 ++ .../MateriaScroller.java | 16 +++++++++++++ .../ScrollingUtilities.java | 23 +++++++++++-------- 6 files changed, 78 insertions(+), 10 deletions(-) diff --git a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/AnimationManager.java b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/AnimationManager.java index d68866b..29cb675 100644 --- a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/AnimationManager.java +++ b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/AnimationManager.java @@ -1,3 +1,18 @@ +/* + * 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 a 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.turingtechnologies.materialscrollbardemo; import ohos.agp.animation.Animator; diff --git a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/Hand.java b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/Hand.java index 17ce679..4882b74 100644 --- a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/Hand.java +++ b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/Hand.java @@ -1,3 +1,19 @@ +/* + * Copyright © 2016-2018, Turing Technologies, an unincorporated organisation of Wynne Plaga + * + * 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 a 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.turingtechnologies.materialscrollbardemo; import ohos.agp.components.Component; diff --git a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/Indicator.java b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/Indicator.java index b7abab7..b1d6a5f 100644 --- a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/Indicator.java +++ b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/Indicator.java @@ -1,3 +1,19 @@ +/* + * Copyright © 2016-2018, Turing Technologies, an unincorporated organisation of Wynne Plaga + * + * 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 a 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.turingtechnologies.materialscrollbardemo; import ohos.agp.colors.RgbColor; diff --git a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/LayoutWrapContentUpdater.java b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/LayoutWrapContentUpdater.java index 853d846..8971b61 100644 --- a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/LayoutWrapContentUpdater.java +++ b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/LayoutWrapContentUpdater.java @@ -1,3 +1,5 @@ + + package com.turingtechnologies.materialscrollbardemo; public class LayoutWrapContentUpdater implements ViewBehavior { diff --git a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/MateriaScroller.java b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/MateriaScroller.java index c03f17a..b6193fb 100644 --- a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/MateriaScroller.java +++ b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/MateriaScroller.java @@ -1,3 +1,19 @@ +/* + * Copyright © 2016-2018, Turing Technologies, an unincorporated organisation of Wynne Plaga + * + * 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 a 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.turingtechnologies.materialscrollbardemo; import ohos.agp.colors.RgbColor; diff --git a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/ScrollingUtilities.java b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/ScrollingUtilities.java index 984496b..911a719 100644 --- a/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/ScrollingUtilities.java +++ b/lib/src/main/java/com/turingtechnologies/materialscrollbardemo/ScrollingUtilities.java @@ -1,14 +1,17 @@ /* - * Copyright © 2016-2018, Turing Technologies, an unincorporated organisation of Wynne Plaga - * 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 a 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. + * Copyright © 2016-2018, Turing Technologies, an unincorporated organisation of Wynne Plaga + * + * 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 a 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.turingtechnologies.materialscrollbardemo; -- Gitee