当前位置: 首页>>代码示例>>Java>>正文


Java TapTargetSequence类代码示例

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


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

示例1: ShowSequence

import com.getkeepsafe.taptargetview.TapTargetSequence; //导入依赖的package包/类
@ReactMethod
public void ShowSequence(final ReadableArray views, final ReadableMap props, final Promise promise) {
    final Activity activity = this.getCurrentActivity();
    final List<TapTarget> targetViews = new ArrayList<TapTarget>();

    for (int i = 0;i < views.size();i++) {
        int view = views.getInt(i);
        targetViews.add(this.generateTapTarget(view, props.getMap(String.valueOf(view))));
    }

    this.getCurrentActivity().runOnUiThread(new Runnable() {
        @Override
        public void run() {
            TapTargetSequence tapTargetSequence = new TapTargetSequence(activity).targets(targetViews);
            tapTargetSequence.continueOnCancel(true);
            tapTargetSequence.start();
        }
    });

}
 
开发者ID:prscX,项目名称:react-native-taptargetview,代码行数:21,代码来源:RNTapTargetViewModule.java

示例2: doShowTapTargetSequenceFor

import com.getkeepsafe.taptargetview.TapTargetSequence; //导入依赖的package包/类
private static void doShowTapTargetSequenceFor(@NonNull final Activity activity, @NonNull final List<TapTarget> targets, @Nullable final TapTargetSequence.Listener listener) {
    new Handler().postDelayed(new Runnable() {
        @Override
        public void run() {
            new TapTargetSequence(activity)
                    .targets(targets)
                    .listener(listener)
                    .start();
        }
    }, DELAY);
}
 
开发者ID:abicelis,项目名称:Remindy,代码行数:12,代码来源:TapTargetSequenceUtil.java

示例3: tutorialFocus

import com.getkeepsafe.taptargetview.TapTargetSequence; //导入依赖的package包/类
/**
 *
 */
public void tutorialFocus() {
    new TapTargetSequence(_activityView.getActivity())
            .targets(focusWheelLense(),
                    focusWheel(),
                    focusSyncMeter(),
                    focusSettingsMenu()).start();
}
 
开发者ID:ehanoc,项目名称:xwallet,代码行数:11,代码来源:TutorialAnim.java

示例4: launchTutorial

import com.getkeepsafe.taptargetview.TapTargetSequence; //导入依赖的package包/类
private void launchTutorial()
{
    final DeepLinkInfo deepLinkInfo = new DeepLinkInfo("deeplinktester://example", "Deep Link Tester", getPackageName(), new Date().getTime());

    final View demoHeaderView = _adapter.createView(0, getLayoutInflater().inflate(R.layout.deep_link_info_layout, null, false), deepLinkInfo);
    demoHeaderView.setBackgroundColor(ResourcesCompat.getColor(getResources(), R.color.White, getTheme()));
    _listView.addHeaderView(demoHeaderView);

    new TapTargetSequence(this)
            .targets(TapTarget.forView(findViewById(R.id.deep_link_input), getString(R.string.onboarding_input_title))
                        .dimColor(android.R.color.black)
                        .outerCircleColor(R.color.SlateGray)
                        .targetCircleColor(R.color.fabColorNormal)
                        .tintTarget(false),
                    TapTarget.forView(findViewById(R.id.deep_link_fire), getString(R.string.onboarding_launch_title))
                        .dimColor(android.R.color.black)
                        .outerCircleColor(R.color.SlateGray)
                        .targetCircleColor(R.color.fabColorNormal)
                        .tintTarget(false),
                    TapTarget.forView(demoHeaderView, getString(R.string.onboarding_history_title))
                        .dimColor(android.R.color.black)
                        .outerCircleColor(R.color.SlateGray)
                        .targetCircleColor(R.color.fabColorNormal)
                        .tintTarget(false))
            .listener(new TapTargetSequence.Listener()
            {
                @Override
                public void onSequenceFinish()
                {
                    _listView.removeHeaderView(demoHeaderView);
                }

                @Override
                public void onSequenceCanceled(TapTarget lastTarget)
                {
                    _listView.removeHeaderView(demoHeaderView);
                }
            })
            .start();
}
 
开发者ID:ManojMadanmohan,项目名称:dlt,代码行数:41,代码来源:DeepLinkHistoryActivity.java


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