Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 10, 2024. It is now read-only.
/ShowCaseViewPublic archive

🔦The ShowcaseView library is designed to highlight and showcase specific parts of apps to the user with an attractive and flat overlay.

License

NotificationsYou must be signed in to change notification settings

mreram/ShowCaseView

Repository files navigation

ReleaseAPKAPIAndroid Arsenalawesome-android

How to use:question:

Sample usage in your activity

newGuideView.Builder(this)    .setTitle("Guide Title Text")    .setContentText("Guide Description Text\n .....Guide Description Text\n .....Guide Description Text .....")    .setGravity(Gravity.auto)//optional    .setDismissType(DismissType.anywhere)//optional - default DismissType.targetView    .setTargetView(view)    .setContentTextSize(12)//optional    .setTitleTextSize(14)//optional    .build()    .show();

Installation

maven:

<repositories>   <repository>     <id>jitpack.io</id>     <url>https://jitpack.io</url>   </repository></repositories>
Step 2. Add the dependency
<dependency>    <groupId>com.github.mreram</groupId>    <artifactId>showcaseview</artifactId>    <version>1.4.1</version></dependency>

gradle:

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

allprojects {repositories {...maven { url'https://jitpack.io' }}}
Step 2. Add the dependency
implementation'com.github.mreram:showcaseview:1.4.1'

Change type face

newGuideView.Builder(this)    .setTitle("Guide Title Text")    .setContentText("Guide Description Text\n .....Guide Description Text\n .....Guide Description Text .....")    .setTargetView(view)    .setContentTypeFace(Typeface)//optional    .setTitleTypeFace(Typeface)//optional    .setDismissType(DismissType.outSide)//optional - default dismissible by TargetView    .build()    .show();

Change title and Content text size

newGuideView.Builder(this)    .setTitle("Guide Title Text")    .setContentText("Guide Description Text\n .....Guide Description Text\n .....Guide Description Text .....")    .setTargetView(view)    .setContentTextSize(12)//optional    .setTitleTextSize(14)//optional    .setDismissType(DismissType.outSide)//optional - default dismissible by TargetView    .build()    .show();

Change Gravity

newGuideView.Builder(this)    .setTitle("Guide Title Text")    .setContentText("Guide Description Text\n .....Guide Description Text\n .....Guide Description Text .....")    .setGravity(Gravity.CENTER)//optional    .setTargetView(view)     .setDismissType(DismissType.outSide)//optional - default dismissible by TargetView    .build()    .show();

use Spannable for Content

newGuideView.Builder(this)    .setTitle("Guide Title Text")    .setTargetView(view)    .setContentSpan((Spannable)Html.fromHtml("<font color='red'>testing spannable</p>"))    .setDismissType(DismissType.outSide)//optional - default dismissible by TargetView    .build()    .show();

Set Listener

newGuideView.Builder(MainActivity.this)    .setTitle("Guide Title Text")    .setContentText("Guide Description Text\n .....Guide Description Text\n .....Guide Description Text .....")    .setGravity(Gravity.CENTER)    .setTargetView(view1)    .setDismissType(DismissType.outSide)//optional - default dismissible by TargetView    .setGuideListener(newGuideListener() {@OverridepublicvoidonDismiss(Viewview) {//TODO ...        }     })    .build()    .show();

DismissType Attribute

TypeDescription
outsideDismissing with click on outside of MessageView
anywhereDismissing with click on anywhere
targetViewDismissing with click on targetView(targetView is assigned with setTargetView method)
outsideTargetAndMessageDismissing with click on outside of MessageView and target View

PointerType Attribute

TypeDescription
circleShow circle pointer towards targetView
arrowShow arrow pointer towards targetView
noneShow no pointer or line towards targetView

Contribution 💥

Pull requests are welcome! 👏

You can improve/fix some part of it .

Add Tests:

Assuming that the code in question already has automated (unit) tests, do add tests for the code you submit.This isn't a hard rule. There are various cases where you may need to add code without test coverage (e.g. when adding a Object), but if it can be tested, it should be tested.

License

   Copyright 2018 Mohammad Reza Eram   Licensed under the Apache License, Version 2.0 (the "License");   you may not use this file except in compliance with the License.   You may obtain a copy of the License at       http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an "AS IS" BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License.

About

🔦The ShowcaseView library is designed to highlight and showcase specific parts of apps to the user with an attractive and flat overlay.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp