|
@@ -3,27 +3,17 @@ package com.sheep.gamegroup.module.guide;
|
|
|
import android.app.Activity;
|
|
import android.app.Activity;
|
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.SharedPreferences;
|
|
|
-import android.graphics.Canvas;
|
|
|
|
|
-import android.graphics.Color;
|
|
|
|
|
-import android.graphics.DashPathEffect;
|
|
|
|
|
-import android.graphics.Paint;
|
|
|
|
|
-import android.graphics.RectF;
|
|
|
|
|
-import android.support.constraint.solver.widgets.Rectangle;
|
|
|
|
|
import android.util.Log;
|
|
import android.util.Log;
|
|
|
import android.view.Gravity;
|
|
import android.view.Gravity;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
import android.view.ViewGroup;
|
|
|
import android.view.animation.AlphaAnimation;
|
|
import android.view.animation.AlphaAnimation;
|
|
|
import android.view.animation.Animation;
|
|
import android.view.animation.Animation;
|
|
|
-import android.widget.TextView;
|
|
|
|
|
-import android.widget.Toast;
|
|
|
|
|
|
|
|
|
|
import com.app.hubert.guide.NewbieGuide;
|
|
import com.app.hubert.guide.NewbieGuide;
|
|
|
import com.app.hubert.guide.core.Builder;
|
|
import com.app.hubert.guide.core.Builder;
|
|
|
import com.app.hubert.guide.core.Controller;
|
|
import com.app.hubert.guide.core.Controller;
|
|
|
import com.app.hubert.guide.listener.OnGuideChangedListener;
|
|
import com.app.hubert.guide.listener.OnGuideChangedListener;
|
|
|
-import com.app.hubert.guide.listener.OnHighlightDrewListener;
|
|
|
|
|
-import com.app.hubert.guide.listener.OnLayoutInflatedListener;
|
|
|
|
|
import com.app.hubert.guide.listener.OnPageChangedListener;
|
|
import com.app.hubert.guide.listener.OnPageChangedListener;
|
|
|
import com.app.hubert.guide.model.GuidePage;
|
|
import com.app.hubert.guide.model.GuidePage;
|
|
|
import com.app.hubert.guide.model.HighLight;
|
|
import com.app.hubert.guide.model.HighLight;
|
|
@@ -31,7 +21,6 @@ import com.app.hubert.guide.model.HighlightOptions;
|
|
|
import com.app.hubert.guide.model.RelativeGuide;
|
|
import com.app.hubert.guide.model.RelativeGuide;
|
|
|
import com.kfzs.duanduan.cardview.ScreenUtil;
|
|
import com.kfzs.duanduan.cardview.ScreenUtil;
|
|
|
import com.sheep.gamegroup.event.BigEvent;
|
|
import com.sheep.gamegroup.event.BigEvent;
|
|
|
-import com.sheep.gamegroup.greendao.DDProviderHelper;
|
|
|
|
|
import com.sheep.gamegroup.module.game.fragment.FgtGameCenter;
|
|
import com.sheep.gamegroup.module.game.fragment.FgtGameCenter;
|
|
|
import com.sheep.gamegroup.module.home.fragment.FgtHome;
|
|
import com.sheep.gamegroup.module.home.fragment.FgtHome;
|
|
|
import com.sheep.gamegroup.module.home.fragment.FgtMainHeader;
|
|
import com.sheep.gamegroup.module.home.fragment.FgtMainHeader;
|
|
@@ -48,7 +37,8 @@ import org.xutils.common.util.LogUtil;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
-import static com.sheep.gamegroup.event.EventTypes.GUIDE_NEXT_NEXT;
|
|
|
|
|
|
|
+import static com.sheep.gamegroup.event.EventTypes.GUIDE_NEXT_GAME;
|
|
|
|
|
+import static com.sheep.gamegroup.event.EventTypes.GUIDE_NEXT_MALL;
|
|
|
|
|
|
|
|
public class NewbieGuideHelper {
|
|
public class NewbieGuideHelper {
|
|
|
|
|
|
|
@@ -58,6 +48,8 @@ public class NewbieGuideHelper {
|
|
|
public final static int GUIDE_GAME = 1;
|
|
public final static int GUIDE_GAME = 1;
|
|
|
public final static int GUIDE_USER = 2;
|
|
public final static int GUIDE_USER = 2;
|
|
|
public final static int GUIDE_FAQ = 3;
|
|
public final static int GUIDE_FAQ = 3;
|
|
|
|
|
+ public final static int GUIDE_MALL = 4;
|
|
|
|
|
+ public final static int GUIDE_MONEY = 5;
|
|
|
|
|
|
|
|
private Activity mActivity;
|
|
private Activity mActivity;
|
|
|
private Animation enterAnimation;
|
|
private Animation enterAnimation;
|
|
@@ -83,11 +75,15 @@ public class NewbieGuideHelper {
|
|
|
showed(getLabelPrex(type));
|
|
showed(getLabelPrex(type));
|
|
|
List<GuidePage> pages = null;
|
|
List<GuidePage> pages = null;
|
|
|
if (type == GUIDE_HOME) {
|
|
if (type == GUIDE_HOME) {
|
|
|
- pages = Arrays.asList(getPage1(), getPage2(), getPage3(), getPage4());
|
|
|
|
|
|
|
+ pages = Arrays.asList(getPage1(), getPage2(), getPage3());
|
|
|
} else if (type == GUIDE_USER) {
|
|
} else if (type == GUIDE_USER) {
|
|
|
- pages = Arrays.asList(getPage5(), getPage6());
|
|
|
|
|
|
|
+ pages = Arrays.asList(getPage6());
|
|
|
|
|
+ } else if (type == GUIDE_MONEY) {
|
|
|
|
|
+ pages = Arrays.asList(getPage5());
|
|
|
} else if (type == GUIDE_FAQ) {
|
|
} else if (type == GUIDE_FAQ) {
|
|
|
pages = Arrays.asList(getPage7());
|
|
pages = Arrays.asList(getPage7());
|
|
|
|
|
+ } else if (type == GUIDE_MALL) {
|
|
|
|
|
+ pages = Arrays.asList(getPage4());
|
|
|
} else if (type == GUIDE_GAME) {
|
|
} else if (type == GUIDE_GAME) {
|
|
|
pages = Arrays.asList(getPage8(), getPage9(), getPage10());
|
|
pages = Arrays.asList(getPage8(), getPage9(), getPage10());
|
|
|
} else {
|
|
} else {
|
|
@@ -110,8 +106,12 @@ public class NewbieGuideHelper {
|
|
|
} else if (type == GUIDE_USER) {
|
|
} else if (type == GUIDE_USER) {
|
|
|
FgtPersonalCenter.scrollToBottom(mActivity);
|
|
FgtPersonalCenter.scrollToBottom(mActivity);
|
|
|
} else if (type == GUIDE_FAQ) {
|
|
} else if (type == GUIDE_FAQ) {
|
|
|
- EventBus.getDefault().post(new BigEvent(GUIDE_NEXT_NEXT));
|
|
|
|
|
|
|
+ FgtPersonalCenter.scrollToTop(mActivity);
|
|
|
|
|
+ } else if (type == GUIDE_MONEY) {
|
|
|
|
|
+ EventBus.getDefault().post(new BigEvent(GUIDE_NEXT_MALL));
|
|
|
mActivity.finish();
|
|
mActivity.finish();
|
|
|
|
|
+ } else if (type == GUIDE_MALL) {
|
|
|
|
|
+ EventBus.getDefault().post(new BigEvent(GUIDE_NEXT_GAME));
|
|
|
} else if (type == GUIDE_GAME) {
|
|
} else if (type == GUIDE_GAME) {
|
|
|
|
|
|
|
|
}
|
|
}
|