Skip to content

Commit 5d85038

Browse files
Merge remote-tracking branch 'origin/master'
2 parents cffd781 + ef81ec5 commit 5d85038

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

README.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,53 @@ Customizable Color Palette Library
33

44
You can use this library to add customizable color palette to your Android application, which comes with an attractive sets of colors to be used for the palette, in addition to a nice UI for displaying the color palette.
55

6-
How to include the Library in your application:
6+
## How to include the Library in your application:
77

8-
Step 1. Add the JitPack repository to your build file
8+
**Step 1. Add the JitPack repository to your build file (project level)**
99

1010
Add it in your root build.gradle at the end of repositories:
1111

12+
***for Gradle:***
13+
1214
allprojects {
1315
repositories {
1416
...
1517
maven { url 'https://jitpack.io' }
1618
}
1719
}
1820

19-
Step 2. Add the dependency
2021

21-
for Gradle:
22+
***for Maven:***
23+
24+
<repositories>
25+
<repository>
26+
<id>jitpack.io</id>
27+
<url>https://jitpack.io</url>
28+
</repository>
29+
</repositories>
30+
31+
32+
**Step 2. Add the dependency**
33+
34+
***for Gradle:***
2235

2336
dependencies {
24-
implementation 'com.github.MuhammedRefaat:ColorPalette:1.0'
37+
implementation 'com.github.MuhammedRefaat:ColorPalette:Tag'
2538
}
2639

27-
for Maven:
40+
***for Maven:***
2841

2942
<dependency>
3043
<groupId>com.github.MuhammedRefaat</groupId>
3144
<artifactId>ColorPalette</artifactId>
32-
<version>1.0</version>
45+
<version>Tag</version>
3346
</dependency>
3447

3548

49+
## How to use the Library:
50+
51+
<com.imagine.colorpalette.ColorPalette
52+
android:id="@+id/color_palette4"
53+
android:layout_width="match_parent"
54+
android:layout_height="wrap_content"
55+
colorPalette:palette="blackAndWhite" />

0 commit comments

Comments
 (0)