Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make rectangle view in showcaseview for listview

I am using https://github.com/amlcurran/ShowcaseView library for Showcaseview
how to make rectangle view instead of circle ?
and how to using it for one of the listview item? thanks

1
like image 777
Samad Avatar asked Oct 04 '14 12:10

Samad


1 Answers

Take a look at this: MaterialShowCaseView that is a improved version of original ShowCaseView library. It has more featurs like sequence and .withRectangleShape() in it. An example of rectangle showcase is:

    // single example
new MaterialShowcaseView.Builder(this)
    .setTarget(mButtonShow)
    .setDismissText("GOT IT")
    .withRectangleShape() // this makes it rectangle
    .setContentText("This is some amazing feature you should know about")
    .setDelay(withDelay) // optional but starting animations immediately in onCreate can make them choppy
    .singleUse(SHOWCASE_ID) // provide a unique ID used to ensure it is only shown once
    .show();

for use it for one of items, use a if in onBindViewHolder with specific position and show it simply.

like image 178
Mahdi Moqadasi Avatar answered Sep 30 '22 18:09

Mahdi Moqadasi