Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
Added jitpack badge
Browse files Browse the repository at this point in the history
  • Loading branch information
mreram authored Jul 16, 2019
1 parent 7483709 commit c3c1cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# :flashlight:ShowCaseView:flashlight:

[![Release](https://jitpack.io/v/mreram/ShowCaseView.svg)](https://jitpack.io/#mreram/ShowCaseView)
[![APK](https://img.shields.io/badge/APK-Demo-brightgreen.svg)](https://github.com/mreram/ShowCaseView/raw/master/demo-flatShowCaseView.apk)
[![API](https://img.shields.io/badge/API-11%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=11) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FlatShowCaseView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/6713)
[![awesome-android](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/JStumpp/awesome-android#gui)
Expand Down

1 comment on commit c3c1cd0

@JhoanG956
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ey, you can explain me, how to declarate and use this.

private void ShowIntro(String title, String text, int viewId, final int type) { new GuideView.Builder(this) .setTitle(title) .setContentText(text) .setTargetView(findViewById(viewId)) .setContentTextSize(12)//optional .setTitleTextSize(14)//optional .setDismissType(GuideView.DismissType.targetView) //optional - default dismissible by TargetView .setGuideListener(new GuideView.GuideListener() { @Override public void onDismiss(View view) { if (type == 1) { ShowIntro("Listado", "En este apartado podrás listar, editar y modificar ordenes de trabajo. Tales cosas como finalizar una actividad.", R.id.cardOne, 6); } else if (type == 6) { ShowIntro("Consulta", "Consulta el estado del stock, filtra y lista los items.", R.id.cardTwo, 2); } else if (type == 2) { ShowIntro("Regularizaciones", "Crea y lista regularizaciones. ", R.id.cardThree, 4); } else { setTutorialShown(true); // Marcar el tutorial como mostrado al finalizar } } }) .build() .show(); }

How can I use it in a chain, that is, to go from activity to activity but the tutorial can be shown in each activity and the flow is not cut off.

Please sign in to comment.