Skip to content

Commit d2a77e4

Browse files
committed
README.md
1 parent 9c199f0 commit d2a77e4

File tree

6 files changed

+98
-1
lines changed

6 files changed

+98
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,24 @@ For example, we can build a card style background for RecyclerView:
1313

1414
![example.png](./example.png "example.png")
1515

16-
And here has a [demo apk]( "").
16+
And here has a [demo apk]( "SliceDemo.1.0.apk"), and it's [source code]( "SliceDemo.1.0.apk's source code"), very easy to understand~
17+
18+
# Gradle
19+
20+
At your top-level `build.gradle` file:
21+
22+
repositories {
23+
// ...
24+
maven { url 'https://jitpack.io' }
25+
}
26+
27+
And then at your project `build.gradle` file:
28+
29+
dependencies {
30+
compile 'com.github.mthli:Slice:v1.0'
31+
}
32+
33+
Done!
1734

1835
## API
1936

app/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2016 Matthew Lee
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
apply plugin: 'com.android.application'
218

319
android {

app/src/main/AndroidManifest.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<!--
4+
~ Copyright (C) 2016 Matthew Lee
5+
~
6+
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7+
~ in compliance with the License. You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software distributed under the License
12+
~ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13+
~ or implied. See the License for the specific language governing permissions and limitations under
14+
~ the License.
15+
-->
16+
117
<manifest package="io.github.mthli.slicedemo"
218
xmlns:android="http://schemas.android.com/apk/res/android">
319

build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2016 Matthew Lee
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
buildscript {
218
repositories {
319
jcenter()

slice/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2016 Matthew Lee
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
apply plugin: 'com.android.library'
218

319
android {

slice/src/main/AndroidManifest.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<!--
4+
~ Copyright (C) 2016 Matthew Lee
5+
~
6+
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7+
~ in compliance with the License. You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software distributed under the License
12+
~ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13+
~ or implied. See the License for the specific language governing permissions and limitations under
14+
~ the License.
15+
-->
16+
117
<manifest package="io.github.mthli.slice"
218
xmlns:android="http://schemas.android.com/apk/res/android">
319

0 commit comments

Comments
 (0)