开源软件名称(OpenSource Name):sjwall/MaterialTapTargetPrompt开源软件地址(OpenSource Url):https://github.com/sjwall/MaterialTapTargetPrompt开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):DEPRECATEDAndroid is moving towards compose, for an alternative library in compose have a look at intro-showcase-view. Bug fix pull requests will be accepted for this library for the immediate future but there will be no active development or new features and it will eventually be archived. Thank you to everyone who has contributed to the library over the years! Material Tap Target Prompt
sjwall.github.io/MaterialTapTargetPrompt
Quick start
·
Examples
·
Sample app
The sample app is available to download on the Google Play Store: Quick startGradleAdd the following to dependencies {
implementation 'uk.co.samuelwall:material-tap-target-prompt:3.3.2'
} Supports Android minSdkVersion 14 Version 2.15.0 works with Android Support Library Also available from GitHub packages UsageBasic usage is shown below with more examples in the sample app and documentation: new MaterialTapTargetPrompt.Builder(MainActivity.this)
.setTarget(R.id.fab)
.setPrimaryText("Send your first email")
.setSecondaryText("Tap the envelope to start composing your first email")
.setPromptStateChangeListener(new MaterialTapTargetPrompt.PromptStateChangeListener()
{
@Override
public void onPromptStateChanged(MaterialTapTargetPrompt prompt, int state)
{
if (state == MaterialTapTargetPrompt.STATE_FOCAL_PRESSED)
{
// User has pressed the prompt target
}
}
})
.show(); NoteIf a target is not set or the target view could not be found or both the primary and secondary text are Other shapesThe default shape is a circle but any other shape can be rendered by extending the PromptBackground and PromptFocal classes.
Custom shapes such as a rectangle can be set by calling License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论