This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
c3c1cd0
There was a problem hiding this comment.
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(); }