|
|
@@ -8,8 +8,11 @@ import android.support.v4.app.FragmentActivity;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.widget.FrameLayout;
|
|
|
+import android.widget.ImageView;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
+import kr.co.zumo.app.lifeplus.util.AppUtil;
|
|
|
+import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
|
|
|
@@ -100,7 +103,6 @@ public class Tutorial {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
private void showTutorialListicleCover(IEventListener listener) {
|
|
|
View view = inflater.inflate(R.layout.tutorial_listicle_cover, null);
|
|
|
frameLayout.addView(view);
|
|
|
@@ -108,6 +110,11 @@ public class Tutorial {
|
|
|
ConstraintLayout bubble1 = view.findViewById(R.id.tutorial_listicle_cover1);
|
|
|
ConstraintLayout bubble2 = view.findViewById(R.id.tutorial_listicle_cover2);
|
|
|
|
|
|
+ if (false == AppUtil.isFullScreenVersion()) {
|
|
|
+ ConstraintLayout.LayoutParams bubble1Params = (ConstraintLayout.LayoutParams) bubble1.getLayoutParams();
|
|
|
+ bubble1Params.setMargins(bubble1Params.leftMargin, bubble1Params.topMargin - ResourceUtil.getStatusBarHeight(), bubble1Params.rightMargin, bubble1Params.bottomMargin);
|
|
|
+ }
|
|
|
+
|
|
|
ObjectAnimator firstTutorial = fadeOut(bubble1);
|
|
|
firstTutorial.setStartDelay(1000);
|
|
|
firstTutorial.setDuration(1000);
|
|
|
@@ -137,7 +144,7 @@ public class Tutorial {
|
|
|
});
|
|
|
this.animator = firstTutorial;
|
|
|
firstTutorial.start();
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
private void showTutorialListicleDetail(IEventListener listener) {
|
|
|
@@ -147,6 +154,14 @@ public class Tutorial {
|
|
|
ConstraintLayout bubble1 = view.findViewById(R.id.tutorial_listicle_detail1);
|
|
|
ConstraintLayout bubble2 = view.findViewById(R.id.tutorial_listicle_detail2);
|
|
|
|
|
|
+ if (false == AppUtil.isFullScreenVersion()) {
|
|
|
+ ConstraintLayout.LayoutParams bubble1Params = (ConstraintLayout.LayoutParams) bubble1.getLayoutParams();
|
|
|
+ bubble1Params.setMargins(bubble1Params.leftMargin, bubble1Params.topMargin - ResourceUtil.getStatusBarHeight(), bubble1Params.rightMargin, bubble1Params.bottomMargin);
|
|
|
+
|
|
|
+ ConstraintLayout.LayoutParams bubble2Params = (ConstraintLayout.LayoutParams) bubble2.getLayoutParams();
|
|
|
+ bubble2Params.setMargins(bubble2Params.leftMargin, bubble2Params.topMargin - ResourceUtil.getStatusBarHeight(), bubble2Params.rightMargin, bubble2Params.bottomMargin);
|
|
|
+ }
|
|
|
+
|
|
|
ObjectAnimator firstTutorial = fadeOut(bubble1);
|
|
|
firstTutorial.setStartDelay(1000);
|
|
|
firstTutorial.setDuration(1000);
|
|
|
@@ -185,9 +200,19 @@ public class Tutorial {
|
|
|
View firstView = inflater.inflate(R.layout.tutorial_bucket_list_tag, null);
|
|
|
ConstraintLayout bubble1 = firstView.findViewById(R.id.tutorial_bucket_list_tag1);
|
|
|
ConstraintLayout bubble2 = firstView.findViewById(R.id.tutorial_bucket_list_tag2);
|
|
|
+ ImageView trashIcon1 = firstView.findViewById(R.id.image_trash);
|
|
|
|
|
|
View secondView = inflater.inflate(R.layout.tutorial_bucket_list_update, null);
|
|
|
ConstraintLayout bubble3 = secondView.findViewById(R.id.tutorial_bucket_list_success);
|
|
|
+ ImageView trashIcon2 = secondView.findViewById(R.id.imageView7);
|
|
|
+
|
|
|
+ if (false == AppUtil.isFullScreenVersion()) {
|
|
|
+ ConstraintLayout.LayoutParams params1 = (ConstraintLayout.LayoutParams) trashIcon1.getLayoutParams();
|
|
|
+ params1.setMargins(params1.leftMargin, params1.topMargin - ResourceUtil.getStatusBarHeight(), params1.rightMargin, params1.bottomMargin);
|
|
|
+
|
|
|
+ ConstraintLayout.LayoutParams params2 = (ConstraintLayout.LayoutParams) trashIcon2.getLayoutParams();
|
|
|
+ params2.setMargins(params2.leftMargin, params2.topMargin - ResourceUtil.getStatusBarHeight(), params2.rightMargin, params2.bottomMargin);
|
|
|
+ }
|
|
|
|
|
|
frameLayout.addView(firstView);
|
|
|
firstView.setClickable(true);
|
|
|
@@ -270,4 +295,5 @@ public class Tutorial {
|
|
|
@Override
|
|
|
public void onAnimationRepeat(Animator animation) { }
|
|
|
}
|
|
|
+
|
|
|
}
|