本文整理汇总了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();
}
});
}
示例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);
}
示例3: tutorialFocus
import com.getkeepsafe.taptargetview.TapTargetSequence; //导入依赖的package包/类
/**
*
*/
public void tutorialFocus() {
new TapTargetSequence(_activityView.getActivity())
.targets(focusWheelLense(),
focusWheel(),
focusSyncMeter(),
focusSettingsMenu()).start();
}
示例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();
}