Search in sources :

Example 16 with ViewTarget

use of com.github.amlcurran.showcaseview.targets.ViewTarget in project ShowcaseView by amlcurran.

the class AnimationSampleActivity method onClick.

@Override
public void onClick(View v) {
    switch(counter) {
        case 0:
            showcaseView.setShowcase(new ViewTarget(textView2), true);
            break;
        case 1:
            showcaseView.setShowcase(new ViewTarget(textView3), true);
            break;
        case 2:
            showcaseView.setTarget(Target.NONE);
            showcaseView.setContentTitle("Check it out");
            showcaseView.setContentText("You don't always need a target to showcase");
            showcaseView.setButtonText(getString(R.string.close));
            setAlpha(0.4f, textView1, textView2, textView3);
            break;
        case 3:
            showcaseView.hide();
            setAlpha(1.0f, textView1, textView2, textView3);
            break;
    }
    counter++;
}
Also used : ViewTarget(com.github.amlcurran.showcaseview.targets.ViewTarget)

Aggregations

ViewTarget (com.github.amlcurran.showcaseview.targets.ViewTarget)16 ShowcaseView (com.github.amlcurran.showcaseview.ShowcaseView)11 View (android.view.View)7 Button (android.widget.Button)7 TextView (android.widget.TextView)6 RecyclerView (android.support.v7.widget.RecyclerView)5 ImageView (android.widget.ImageView)5 DefaultItemAnimator (android.support.v7.widget.DefaultItemAnimator)4 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)4 RelativeLayout (android.widget.RelativeLayout)4 ClickItemTouchListener (com.sdsmdg.harjot.MusicDNA.clickitemtouchlistener.ClickItemTouchListener)4 Handler (android.os.Handler)3 UnifiedTrack (com.sdsmdg.harjot.MusicDNA.models.UnifiedTrack)3 PorterDuffColorFilter (android.graphics.PorterDuffColorFilter)2 FloatingActionButton (android.support.design.widget.FloatingActionButton)2 TextPaint (android.text.TextPaint)2 MenuItem (android.view.MenuItem)2 AdapterView (android.widget.AdapterView)2 SeekBar (android.widget.SeekBar)2 ImageLoader (com.sdsmdg.harjot.MusicDNA.imageloader.ImageLoader)2