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.faruktoptas:fancyShowCaseView:1.4.0'
}
dependencies {
implementation("com.github.faruktoptas:fancyShowCaseView:1.4.0")
}
<dependency>
<groupId>com.github.faruktoptas</groupId>
<artifactId>fancyShowCaseView</artifactId>
<version>1.4.0</version>
</dependency>
libraryDependencies += "com.github.faruktoptas" % "fancyShowCaseView" % "1.4.0"
:dependencies [[com.github.faruktoptas/fancyShowCaseView "1.4.0"]]
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Then, add the library to your module build.gradle
dependencies {
implementation 'com.github.faruktoptas:FancyShowCaseView:1.4.0'
}
new FancyShowCaseView.Builder(this)
.focusOn(view)
.title("Focus on View")
.build()
.show();
| Command | Description |
| --- | --- |
| focusOn
| The view to be focused. |
| title
| The title text to be displayed. |
| typeface
| The custom typeface for the title text. |
| titleStyle
| The text style for the title. (style defined in xml file) |
| titleGravity
| The gravity (alignment) of the title within the view (e.g., start, center, end). |
| titleSize
| The size of the title text, typically in sp units. |
| enableAutoTextPosition
| Center text position vertically. |
| backgroundColor
| The background color of the view, typically in hexadecimal or resource ID format. |
| fitSystemWindows
| This should be set to true, if your root view has this property set to true. |
| focusShape
| The shape of the focus area (e.g., rounded rectangle, circle). |
| focusBorderColor
| The color of the border around the focus area. |
| focusBorderSize
| The thickness of the border around the focus area (px) |
| focusDashedBorder
| Makes focus border dashed |
| roundRectRadius
| The radius for rounded corners when the focus shape is a rectangle with rounded edges. Use 0 for rectangle shape. |
| showOnce
| Determines if the focus should be shown only once. |
| clickableOn
| Let the touch event pass through to clickable view zone only if clicking within |
| focusCircleRadiusFactor
| Circle radius factor. Default value is 1. Bigger value makes bigger circle. |
| focusRectSizeFactor
| Focus rectangle size factor. Default value is 1. Bigger value makes bigger rectangle. |
| customView
| Use a fully customized view. If custom view used, title and title properties (titleStyle, titleGravity etc.) will be ignored. |
| closeOnTouch
| Closes the FancyShowCaseView when touching it. |
| enableTouchOnFocusedView
| Enables touching the focused view. Default value is false. |
| enterAnimation
| |
| exitAnimation
| |
| animationListener
| |
| disableFocusAnimation
| |
| focusAnimationMaxValue
| Focus animation max value. Bigger value makes larger focus area. |
| focusAnimationStep
| Step for focus animation. Default value is 1. |
| focusRectAtPosition
| |
| focusCircleAtPosition
| |
| dismissListener
| |
| delay
| Shows the FancyShowCaseView after a delay. |
Please see wiki for more samples.
(feel free to send me new projects)
Thanks to DigitalSa1nt for the Xamarin ported version Xamarin.ShowcaseView
You can contribute by opening a pull request to dev branch. Please try to push one feature in one commit for a clean commit history.
<a href="https://www.buymeacoffee.com/faruktoptas" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>