• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java MaterialShowcaseSequence类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中uk.co.deanwild.materialshowcaseview.MaterialShowcaseSequence的典型用法代码示例。如果您正苦于以下问题:Java MaterialShowcaseSequence类的具体用法?Java MaterialShowcaseSequence怎么用?Java MaterialShowcaseSequence使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MaterialShowcaseSequence类属于uk.co.deanwild.materialshowcaseview包,在下文中一共展示了MaterialShowcaseSequence类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: showTutorial

import uk.co.deanwild.materialshowcaseview.MaterialShowcaseSequence; //导入依赖的package包/类
private void showTutorial() {
    ShowcaseConfig config = new ShowcaseConfig();
    config.setDelay(500);
    MaterialShowcaseSequence sequence = new MaterialShowcaseSequence(this);
    sequence.setConfig(config);
    sequence.addSequenceItem(new MaterialShowcaseView.Builder(this)
            .setTarget(fab)
            .singleUse("fab")
            .setDismissText("NEXT")
            .setMaskColour(ContextCompat.getColor(this, R.color.tutorialBackground))
            .setDismissTextColor(ContextCompat.getColor(this, R.color.tutorialDismiss))
            .setShapePadding(0)
            .setContentText("Add new shows using this button.")
            .build());
    sequence.addSequenceItem(new MaterialShowcaseView.Builder(this)
            .setTarget(mTabLayout)
            .singleUse("tabs")
            .setDismissText("GOT IT")
            .setMaskColour(ContextCompat.getColor(this, R.color.tutorialBackground))
            .setDismissTextColor(ContextCompat.getColor(this, R.color.tutorialDismiss))
            .withRectangleShape()
            .setShapePadding(0)
            .setContentText("Swipe to see Aired and Upcoming episodes.")
            .build());
    sequence.start();
}
 
开发者ID:chashmeetsingh,项目名称:TrackIt-Android,代码行数:27,代码来源:MainActivity.java


示例2: showTutorial

import uk.co.deanwild.materialshowcaseview.MaterialShowcaseSequence; //导入依赖的package包/类
private void showTutorial() {
    if (recyclerView != null && recyclerView.getChildCount() > 0) {
        ShowcaseConfig config = new ShowcaseConfig();
        config.setDelay(100);
        MaterialShowcaseSequence sequence = new MaterialShowcaseSequence(getActivity());
        sequence.setConfig(config);
        sequence.addSequenceItem(new MaterialShowcaseView.Builder(getActivity())
                .setTarget(recyclerView.getChildAt(0))
                .singleUse("tab1")
                .withRectangleShape()
                .setContentText("Tap on the right side to set the episode as watched.")
                .setDismissText("NEXT")
                .setMaskColour(ContextCompat.getColor(getActivity(), R.color.tutorialBackground))
                .setDismissTextColor(ContextCompat.getColor(getActivity(), R.color.tutorialDismiss))
                .build());
        sequence.addSequenceItem(new MaterialShowcaseView.Builder(getActivity())
                .setTarget(recyclerView.getChildAt(0).findViewById(R.id.watched_indicator))
                .singleUse("tab1indicator")
                .setContentText("This indicates whether an episode is watched or not.")
                .setDismissText("GOT IT")
                .setShapePadding(15)
                .setMaskColour(ContextCompat.getColor(getActivity(), R.color.tutorialBackground))
                .setDismissTextColor(ContextCompat.getColor(getActivity(), R.color.tutorialDismiss))
                .build());
        sequence.start();
    }
}
 
开发者ID:chashmeetsingh,项目名称:TrackIt-Android,代码行数:28,代码来源:Tab1.java


示例3: displayShowcaseViewFilterBox

import uk.co.deanwild.materialshowcaseview.MaterialShowcaseSequence; //导入依赖的package包/类
/**
 * Function to display the MaterialShowcaseView for filterBox.
 */
private void displayShowcaseViewFilterBox() {
    MaterialShowcaseSequence filterShowcase = new MaterialShowcaseSequence(getActivity(), BuildConfig.VERSION_NAME + "FILTER");
    ShowcaseConfig config = new ShowcaseConfig();
    config.setDelay(250);
    filterShowcase.setConfig(config);

    filterShowcase.addSequenceItem(buildShowcaseView(filterBox, new RectangleShape(0, 0),
            "In the mood for multiple things? List your filters separated by a comma to combine the results!"
    ));

    filterShowcase.start();
}
 
开发者ID:christarazi,项目名称:random-restaurant-generator,代码行数:16,代码来源:MainActivityFragment.java


示例4: presentShowcaseSequence

import uk.co.deanwild.materialshowcaseview.MaterialShowcaseSequence; //导入依赖的package包/类
private void presentShowcaseSequence() {

        ShowcaseConfig config = new ShowcaseConfig();
        config.setDelay(500); // half second between each showcase view

        MaterialShowcaseSequence sequence = new MaterialShowcaseSequence(this, SHOWCASE_ID);

        sequence.setOnItemShownListener(new MaterialShowcaseSequence.OnSequenceItemShownListener() {
            @Override
            public void onShow(MaterialShowcaseView itemView, int position) {
                Toast.makeText(itemView.getContext(), "Item #" + position, Toast.LENGTH_SHORT).show();
            }
        });

        sequence.setConfig(config);

        sequence.addSequenceItem(mButtonOne, "This is button one", "GOT IT");

        sequence.addSequenceItem(
                new MaterialShowcaseView.Builder(this)
                        .setTarget(mButtonTwo)
                        .setDismissText("GOT IT")
                        .setContentText("This is button two")
                        .withRectangleShape(true)
                        .build()
        );

        sequence.addSequenceItem(
                new MaterialShowcaseView.Builder(this)
                        .setTarget(mButtonThree)
                        .setDismissText("GOT IT")
                        .setContentText("This is button three")
                        .withRectangleShape()
                        .build()
        );

        sequence.start();

    }
 
开发者ID:deano2390,项目名称:MaterialShowcaseView,代码行数:40,代码来源:SequenceExample.java


示例5: setupInstace

import uk.co.deanwild.materialshowcaseview.MaterialShowcaseSequence; //导入依赖的package包/类
private void setupInstace(View rootView) {
    switchCompat = (SwitchCompat) rootView.findViewById(R.id.switch_button);
    effectpager = (ViewPager) rootView.findViewById(R.id.effect_pager);
    eqView = LayoutInflater.from(getContext()).inflate(R.layout.eq_view, new LinearLayout(getContext()), false);
    bassBoost = (EqView) eqView.findViewById(R.id.bassboost);
    virtualizerBoost = (EqView) eqView.findViewById(R.id.virtualizerboost);
    loudnessBoost = (EqView) eqView.findViewById(R.id.loudboost);

    eqViews = LayoutInflater.from(getContext()).inflate(R.layout.eq_views, new LinearLayout(getContext()), false);
    reverb = (EqView) eqViews.findViewById(R.id.reverb);

    /**
     * Pager config
     */
    viewList = new ArrayList<>(2);
    viewList.add(eqView);
    viewList.add(eqViews);
    playingPagerAdapter = new PlayingPagerAdapter(viewList);
    effectpager.setAdapter(playingPagerAdapter);
    switchEq();
    initBassBoost();
    initEq(rootView);
    initPresets(rootView);
    initVirtualizerBoost();
    initLoudnessBoost();
    initPresetReverbBoost();

    ateKey = Helper.getATEKey(getContext());
    accentcolor = Config.accentColor(getContext(), ateKey);

    /**
     * Show Case
     */
    ShowcaseConfig config = new ShowcaseConfig();
    config.setDelay(500);
    config.setShapePadding(20);
    MaterialShowcaseSequence sequence = new MaterialShowcaseSequence(getActivity(), "800");
    sequence.setConfig(config);
    sequence.addSequenceItem(switchCompat, "Enabled/Disable equalizer", "GOT IT");
    sequence.addSequenceItem(effectpager, "Slide right/left to see effects", "GOT IT");
    sequence.setOnItemDismissedListener(new MaterialShowcaseSequence.OnSequenceItemDismissedListener() {
        @Override
        public void onDismiss(MaterialShowcaseView materialShowcaseView, int i) {
            config.setDelay(500);
        }
    });
    sequence.start();
}
 
开发者ID:RajneeshSingh007,项目名称:MusicX-music-player,代码行数:49,代码来源:EqFragment.java


示例6: function

import uk.co.deanwild.materialshowcaseview.MaterialShowcaseSequence; //导入依赖的package包/类
@Override
protected void function() {
    mPlayLayout.fastOpen();
    mPlayLayout.getIvSkipNext().setImageResource(R.drawable.aw_ic_next);
    mPlayLayout.getIvSkipPrevious().setImageResource(R.drawable.aw_ic_prev);
    ateKey = Helper.getATEKey(getContext());
    accentColor = Config.accentColor(getContext(), ateKey);
    mPlayLayout.setPlayButtonBackgroundTintList(ColorStateList.valueOf(accentColor));
    moreMenu.setOnClickListener(mOnClickListener);
    if (getActivity() == null || getActivity().getWindow() == null) {
        return;
    }
    moreMenu.setImageDrawable(ContextCompat.getDrawable(getContext(), R.drawable.ic_menu));
    favhelper = new FavHelper(getContext());
    favButton.setOnClickListener(mOnClickListener);
    CustomLayoutManager customlayoutmanager = new CustomLayoutManager(getContext());
    customlayoutmanager.setOrientation(LinearLayoutManager.HORIZONTAL);
    queuerv.setLayoutManager(customlayoutmanager);
    SnapHelper startSnapHelper = new StartSnapHelper();
    startSnapHelper.attachToRecyclerView(queuerv);
    queuerv.setHasFixedSize(true);
    queueAdapter = new QueueAdapter(getContext(), this);
    queueAdapter.setLayoutId(R.layout.gridqueue);
    queuerv.setAdapter(queueAdapter);
    queueAdapter.setOnItemClickListener(onClick);
    ItemTouchHelper.Callback callback = new SimpleItemTouchHelperCallback(queueAdapter);
    mItemTouchHelper = new ItemTouchHelper(callback);
    mItemTouchHelper.attachToRecyclerView(queuerv);
    if (Extras.getInstance().getDarkTheme() || Extras.getInstance().getBlackTheme()) {
        mPlayLayout.setProgressLineColor(ContextCompat.getColor(getContext(), R.color.translucent_white_8p));
    } else {
        mPlayLayout.setProgressLineColor(ContextCompat.getColor(getContext(), R.color.translucent_white_8p));
    }
    getActivity().getWindow().setStatusBarColor(accentColor);
    /**
     * Show Case
     */
    ShowcaseConfig config = new ShowcaseConfig();
    config.setDelay(500);
    MaterialShowcaseSequence sequence = new MaterialShowcaseSequence(getActivity(), "400");
    sequence.setConfig(config);
    sequence.addSequenceItem(queuerv, "Slide right/left to view Lyrics/PlayingView", "GOT IT");
    sequence.setOnItemDismissedListener(new MaterialShowcaseSequence.OnSequenceItemDismissedListener() {
        @Override
        public void onDismiss(MaterialShowcaseView materialShowcaseView, int i) {
            materialShowcaseView.hide();
        }
    });
    sequence.start();
    helper = new Helper(getContext());
    startVisualiser();
}
 
开发者ID:RajneeshSingh007,项目名称:MusicX-music-player,代码行数:53,代码来源:Playing2Fragment.java



注:本文中的uk.co.deanwild.materialshowcaseview.MaterialShowcaseSequence类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java BIElement类代码示例发布时间:2022-05-23
下一篇:
Java MutableModuleExtensionWithSdk类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap