diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 5f940083f5c5d674b5e81c63dd13a4b56715b52d..0000000000000000000000000000000000000000 --- a/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -*.iml -.gradle -/local.properties -/.idea -.DS_Store -/build -/captures diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000000000000000000000000000000000000..c7985c70acb4f3bad229788dc84bf7b43f121f70 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ +## 0.0.1-SNAPSHOT + ohos 第一个版本 + +* 实现了原库的全部功能 + + + + diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE diff --git a/README.OPENSOURCE b/README.OPENSOURCE new file mode 100644 index 0000000000000000000000000000000000000000..8151b8f27401fca68d41e929d948a63ac61d0ecb --- /dev/null +++ b/README.OPENSOURCE @@ -0,0 +1,10 @@ +[ + { + "Name": "ShadowLayout", + "License": "Apache License", + "License File": "LICENSE", + "Version Number": "1.0.2", + "Upstream URL": "https://github.com/Devlight/ShadowLayout", + "Description": "此库允许您基于子对象为布局创建阴影效果" + } +] \ No newline at end of file diff --git a/README.md b/README.md index 2a3a3f3777757e6b864eea12f9480e2668b14e39..ad4ab245dfc10b8a415731b135eda65cc97403be 100644 --- a/README.md +++ b/README.md @@ -1,168 +1,92 @@ -
-

- - Devlight - -

-
- -ShadowLayout -============ - -This library allows you to create a shadow effect for your layout based on your child. - -[![Android Arsenal](https://drive.google.com/uc?export=download&id=0BxPO_UeS7wScd2otYkEydkdjNUk)](http://android-arsenal.com/details/1/3524) -      -[![Android](https://drive.google.com/uc?export=download&id=0BxPO_UeS7wSccEZaclNGN0R5OWc)](https://github.com/DevLight-Mobile-Agency) -      -[![Download](https://drive.google.com/uc?export=download&id=0BxPO_UeS7wScLXZTaGprRXZXeEU)](https://bintray.com/gigamole/maven/shadowlayout/_latestVersion) -      -[![License](https://drive.google.com/uc?export=download&id=0BxPO_UeS7wScU0tmeFpGMHVWNWs)](https://github.com/DevLight-Mobile-Agency/ShadowLayout/blob/master/LICENSE.txt) -      -[![Codacy](https://drive.google.com/uc?export=download&id=0BxPO_UeS7wScSHhmckZyeGJDcXc)](https://www.codacy.com/app/gigamole53/ShadowLayout?utm_source=github.com&utm_medium=referral&utm_content=DevLight-Mobile-Agency/ShadowLayout&utm_campaign=Badge_Grade) - -
- -

- -

- -You can check the sample app [here](https://github.com/DevLight-Mobile-Agency/ShadowLayout/tree/master/app). - -Warn -==== -``` -This library is not more supported. -If you want to add new feature or fix a bug, grab source code and do it. -If you think your fix or feature would be useful to other developers, -I can add link of your repository to this README file. -Thank you for using our libraries. -``` +# ShadowLayout + +#### 项目介绍 +- 项目名称:ShadowLayout +- 所属系列:openharmony的第三方组件适配移植 +- 功能:此库允许您基于子对象为布局创建阴影效果 +- 项目移植状态:主功能完成 +- 调用差异:无 +- 开发版本:sdk6,DevEco Studio 2.2 Beta1 +- 基线版本:1.0.2 -Download -======== +#### 效果演示 + -You can download a `.aar` from GitHub's [releases page](https://github.com/DevLight-Mobile-Agency/ShadowLayout/releases). +#### 安装教程 -Or use Gradle jCenter: -```groovy -dependencies { +1.在项目根目录下的build.gradle文件中, + +``` +allprojects { repositories { - mavenCentral() maven { - url 'http://dl.bintray.com/gigamole/maven/' + url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' } } - compile 'com.github.devlight.shadowlayout:library:+' } ``` -Or Gradle Maven Central: +2.在entry模块的build.gradle文件中, -```groovy -compile 'com.github.devlight.shadowlayout:library:1.0.2' ``` - -Or Maven: - -```groovy - - com.github.devlight.shadowlayout - library - 1.0.2 - aar - + dependencies { + implementation('com.gitee.chinasoft_ohos:ShadowLayout:0.0.1-SNAPSHOT') + ...... + } ``` -Android SDK Version -=================== +在sdk6,DevEco Studio 2.2 Beta1下项目可直接运行 +如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, +并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 -`ShadowLayout` requires a minimum SDK version of 11. +#### 使用说明 -Sample -====== +1.将仓库导入到本地仓库中 -Parameters - -For `ShadowLayout` you can set such parameters as: - - - shadowed: - allows you to handle shadow visibility. - - - shadow distance: - allows you to set distance of shadow. +2.在布局文件中加入ButtonProgressBar控件,代码实例如下: - - shadow angle: - allows you to set shadow angle. - - - shadow radius: - allows you to set shadow radius. - - - shadow color: - allows you to set shadow color. - -Tips - -Angle can only be positive and be in range from 0 to 360 degrees. -`ShadowLayout` automatically set padding for shadow space draw. - -Init - -Check out in code init: - -```java -final ShadowLayout shadowLayout = (ShadowLayout) findViewById(R.id.sl); -shadowLayout.setIsShadowed(true); -shadowLayout.setShadowAngle(45); -shadowLayout.setShadowRadius(20); -shadowLayout.setShadowDistance(30); -shadowLayout.setShadowColor(Color.DKGRAY); ``` - -Other methods check out in sample. - -And XML init: - -```xml - + - + + - -``` + -Getting Help -============ -To report a specific problem or feature request, [open a new issue on Github](https://github.com/DevLight-Mobile-Agency/ShadowLayout/issues/new). +``` -Author -====== +#### 测试信息 -Created by [Basil Miller](https://github.com/GIGAMOLE) - [@gigamole](mailto:gigamole53@gmail.com) +CodeCheck代码测试无异常 -Company -======= +CloudTest代码测试无异常 -[![Facebook](https://drive.google.com/uc?export=download&id=0BxPO_UeS7wScaGhGVFNKU0VxMnc)](https://www.facebook.com/devlightagency)     [![Twitter](https://drive.google.com/uc?export=download&id=0BxPO_UeS7wScZ1ExQWh5cHF5cVE)](https://twitter.com/DevLightIO)     [![LinkedIn](https://drive.google.com/uc?export=download&id=0BxPO_UeS7wSccGZINzEycE1nVFE)](https://www.linkedin.com/company/devlight) +病毒安全检测通过 -[Here](https://github.com/DevLight-Mobile-Agency) you can see open source work developed by Devlight LLC. -This and another works is an exclusive property of Devlight LLC. +当前版本demo功能与原组件基本无差异 -If you want to use this library in applications which will be available on Google Play, please report us or author of the library about it. +#### 版本迭代 -Whether you're searching for a new partner or trusted team for creating your new great product we are always ready to start work with you. +- 0.0.1-SNAPSHOT -You can contact us: info@devlight.io or opensource@devlight.io. -Thanks in advance. +#### 版权和许可信息 -Devlight LLC, 2016 -[devlight.io](http://devlight.io) diff --git a/app/.gitignore b/app/.gitignore deleted file mode 100644 index 796b96d1c402326528b4ba3c12ee9d92d0e212e9..0000000000000000000000000000000000000000 --- a/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/app/build.gradle b/app/build.gradle deleted file mode 100644 index c7ebf2ca96f676e383d2f8c1be703e20cc5fb1c4..0000000000000000000000000000000000000000 --- a/app/build.gradle +++ /dev/null @@ -1,26 +0,0 @@ -apply plugin: 'com.android.application' - -android { - compileSdkVersion 23 - buildToolsVersion "23.0.3" - - defaultConfig { - applicationId "com.gigamole.shadowlayout" - minSdkVersion 11 - targetSdkVersion 23 - versionCode 1 - versionName "1.0" - } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } -} - -dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) - compile project(':library') - compile 'com.android.support:appcompat-v7:23.3.0' -} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro deleted file mode 100644 index 245df8faea619c2b0951d9504ed0dd05b8f5e560..0000000000000000000000000000000000000000 --- a/app/proguard-rules.pro +++ /dev/null @@ -1,17 +0,0 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in D:\Programs\Programming\AndroidStudio\AS_SDK/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/app/src/androidTest/java/com/gigamole/shadowlayout/ApplicationTest.java b/app/src/androidTest/java/com/gigamole/shadowlayout/ApplicationTest.java deleted file mode 100644 index 86ebc37d253df962bc2cb41a3aee9acdbad63424..0000000000000000000000000000000000000000 --- a/app/src/androidTest/java/com/gigamole/shadowlayout/ApplicationTest.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.gigamole.shadowlayout; - -import android.app.Application; -import android.test.ApplicationTestCase; - -/** - * Testing Fundamentals - */ -public class ApplicationTest extends ApplicationTestCase { - public ApplicationTest() { - super(Application.class); - } -} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml deleted file mode 100644 index 5743562abb9890bb30c620f67beb55e9828bbbbd..0000000000000000000000000000000000000000 --- a/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - diff --git a/app/src/main/java/com/gigamole/shadowlayout/MainActivity.java b/app/src/main/java/com/gigamole/shadowlayout/MainActivity.java deleted file mode 100644 index c30ea3060ffbc35f50a201ec8c02d1f6c694efaa..0000000000000000000000000000000000000000 --- a/app/src/main/java/com/gigamole/shadowlayout/MainActivity.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.gigamole.shadowlayout; - -import android.app.Activity; -import android.os.Bundle; - -public class MainActivity extends Activity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - } -} diff --git a/app/src/main/res/drawable/ic_design.png b/app/src/main/res/drawable/ic_design.png deleted file mode 100644 index 89fea86a1220042e186b6ce489e5973e6cbbb001..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/drawable/ic_design.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_development.png b/app/src/main/res/drawable/ic_development.png deleted file mode 100644 index a80b9035ef7f3b61a6ef254aaa4b42725378bfb7..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/drawable/ic_development.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_logo.png b/app/src/main/res/drawable/ic_logo.png deleted file mode 100644 index e69a2c1fe8f60913d925b4dd1e390c55beb0c14f..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/drawable/ic_logo.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_qa.png b/app/src/main/res/drawable/ic_qa.png deleted file mode 100644 index 24293ad0f617a2916f9e8848838c933f28f5d3a5..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/drawable/ic_qa.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_strategy.png b/app/src/main/res/drawable/ic_strategy.png deleted file mode 100644 index f689595ea77512caab2eb7274bcb05e7ad87599d..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/drawable/ic_strategy.png and /dev/null differ diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml deleted file mode 100644 index ee67eb465a421ad8dc207c3bc0d69f6d476794fb..0000000000000000000000000000000000000000 --- a/app/src/main/res/layout/activity_main.xml +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index cde69bcccec65160d92116f20ffce4fce0b5245c..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index c133a0cbd379f5af6dbf1a899a0293ca5eccfad0..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index bfa42f0e7b91d006d22352c9ff2f134e504e3c1d..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index 324e72cdd7480cb983fa1bcc7ce686e51ef87fe7..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index aee44e138434630332d88b1680f33c4b24c70ab3..0000000000000000000000000000000000000000 Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml deleted file mode 100644 index 63fc816444614bd64f68a372d1f93211628ee51d..0000000000000000000000000000000000000000 --- a/app/src/main/res/values-w820dp/dimens.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - 64dp - diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml deleted file mode 100644 index 1259712e9063f40c1113ef93cb43b6ae270608e6..0000000000000000000000000000000000000000 --- a/app/src/main/res/values/strings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - ShadowLayout - diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml deleted file mode 100644 index 7bd70de27f638b7ee18c16504a8dca41386ae607..0000000000000000000000000000000000000000 --- a/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,5 +0,0 @@ - - -