Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.mohamedmabrouk582:bubbleshowcase:1.0.9'
}
dependencies {
implementation("com.github.mohamedmabrouk582:bubbleshowcase:1.0.9")
}
<dependency>
<groupId>com.github.mohamedmabrouk582</groupId>
<artifactId>bubbleshowcase</artifactId>
<version>1.0.9</version>
</dependency>
libraryDependencies += "com.github.mohamedmabrouk582" % "bubbleshowcase" % "1.0.9"
:dependencies [[com.github.mohamedmabrouk582/bubbleshowcase "1.0.9"]]
=================
<br>
BubbleShowCase is an elegant and simple framework developed in Kotlin (usable also in Java) that let you to use informative bubbles to help your users pointing out different features of your application or in your App onboarding. The basic use of the framework consists on a target element passed as input which will be highlighted over a translucent background and pointed out by a customizable bubble.
Add the library into your proyect is really easy, you just need to add this line in dependencies block in your app Gradle:
maven { url 'https://jitpack.io' }
implementation 'com.github.mohamedmabrouk582:BubbleShowCase:LATEST_VERSION'
NOTE: You can check the LATEST_VERSION in the version badge at the top of this file.
#simple
BubbleShowCaseBuilder(this)
.title(it.title)
.description(it.content)
.titleColor(Color.parseColor("#000000"))
.contentColor(Color.parseColor("#00574B"))
.backgroundColorResourceId(R.drawable.backGround)
.titleTextSize(17)
.descriptionTextSize(18)
.showNextButton(true)
.nextButtonText("Next")
.nextButtonColorResourceId(R.color.white)
.nextButtonTextSize(10f)
.showSkip(true)
.skipTextSize(10f)
.skipResourceId(R.drawable.next_btn)
.skipText("Skip All")
.skipTextColorResourceId(R.color.white)
.nextButtonResourceId(R.drawable.next_btn)
.showOnce(it.key)
.closeActionImageResourceId(R.drawable.ic_close_black_24dp)
.imageResourceId(R.drawable.download__1_)
.highlightMode(BubbleShowCase.HighlightMode.VIEW_SURFACE)
.listener(object : BubbleShowCaseListener {
override fun onTargetClick(bubbleShowCase: BubbleShowCase) {
}
override fun onCloseActionImageClick(bubbleShowCase: BubbleShowCase) {
}
override fun onBackgroundDimClick(bubbleShowCase: BubbleShowCase) {
}
override fun onBubbleClick(bubbleShowCase: BubbleShowCase) {
}
}).targetView(it.view).show
#squance simple
BubbleShowCaseSequence()
.addShowCases(BubbleShowCaseBuilder(this)
.title(it.title)
.description(it.content)
.titleColor(Color.parseColor("#000000"))
.contentColor(Color.parseColor("#00574B"))
.backgroundColorResourceId(it.backGround)
.titleTextSize(17)
.descriptionTextSize(18)
.showNextButton(true)
.nextButtonText("Next")
.nextButtonColorResourceId(R.color.white)
.nextButtonTextSize(10f)
.showSkip(true)
.skipTextSize(10f)
.skipResourceId(R.drawable.next_btn)
.skipText("Skip All")
.skipTextColorResourceId(R.color.white)
.nextButtonResourceId(R.drawable.next_btn)
.showOnce(it.key)
.closeActionImageResourceId(R.drawable.ic_close_black_24dp)
.imageResourceId(R.drawable.download__1_)
.highlightMode(BubbleShowCase.HighlightMode.VIEW_SURFACE)
.listener(object : BubbleShowCaseListener {
override fun onTargetClick(bubbleShowCase: BubbleShowCase) {
}
override fun onCloseActionImageClick(bubbleShowCase: BubbleShowCase) {
}
override fun onBackgroundDimClick(bubbleShowCase: BubbleShowCase) {
}
override fun onBubbleClick(bubbleShowCase: BubbleShowCase) {
}
}).targetView(it.view)).show()