billyyoyo пре 6 година
родитељ
комит
0604c95341

+ 2 - 1
app/src/main/AndroidManifest.xml

@@ -443,11 +443,12 @@
             android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
         <activity
             android:name="com.sheep.gamegroup.view.activity.ActNewbieTaskList"
+            android:configChanges="orientation|keyboardHidden|navigation|screenSize"
             android:screenOrientation="portrait"
             android:theme="@style/AppActionTheme" />
         <activity
             android:name="com.sheep.gamegroup.view.activity.ActUnderstandSheep"
-            android:screenOrientation="portrait"
+            android:configChanges="orientation|keyboardHidden|navigation|screenSize"
             android:theme="@style/AppActionTheme" />
         <activity
             android:name="com.sheep.gamegroup.view.activity.ActCreditCardTaskList"

+ 100 - 62
app/src/main/java/com/sheep/gamegroup/view/activity/ActUnderstandSheep.java

@@ -1,6 +1,10 @@
 package com.sheep.gamegroup.view.activity;
 
 import android.app.Activity;
+import android.content.res.Configuration;
+import android.os.Build;
+import android.os.Bundle;
+import android.text.TextUtils;
 import android.view.View;
 import android.widget.ImageView;
 import android.widget.TextView;
@@ -10,14 +14,23 @@ import com.sheep.gamegroup.model.entity.BaseMessage;
 import com.sheep.gamegroup.model.entity.NewbieTaskRecord;
 import com.sheep.gamegroup.model.util.SheepSubscriber;
 import com.sheep.gamegroup.util.GlideImageLoader;
+import com.sheep.gamegroup.util.LogUtil;
 import com.sheep.gamegroup.util.MyDbManager;
 import com.sheep.gamegroup.util.RxjavaCountDownTimer;
+import com.sheep.gamegroup.util.ViewUtil;
+import com.sheep.gamegroup.view.customview.SheepGSYVideoView;
 import com.sheep.jiuyan.samllsheep.BuildConfig;
 import com.sheep.jiuyan.samllsheep.R;
 import com.sheep.jiuyan.samllsheep.SheepApp;
 import com.sheep.gamegroup.absBase.BaseActivity;
 import com.sheep.jiuyan.samllsheep.utils.G;
 import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
+import com.sheep.gamegroup.util.CommonUtil;
+import com.shuyu.gsyvideoplayer.GSYVideoManager;
+import com.shuyu.gsyvideoplayer.builder.GSYVideoOptionBuilder;
+import com.shuyu.gsyvideoplayer.listener.GSYSampleCallBack;
+import com.shuyu.gsyvideoplayer.utils.OrientationUtils;
+import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer;
 
 import butterknife.BindView;
 import io.reactivex.android.schedulers.AndroidSchedulers;
@@ -30,78 +43,73 @@ import io.reactivex.schedulers.Schedulers;
 
 public class ActUnderstandSheep extends BaseActivity {
 
-    private Activity activity;
-
-    @BindView(R.id.i_understand_tv)
-    TextView i_understand_tv;
-    @BindView(R.id.understand_sheep_01)
-    ImageView understand_sheep_01;
-    @BindView(R.id.understand_sheep_02)
-    ImageView understand_sheep_02;
-    @BindView(R.id.understand_sheep_03)
-    ImageView understand_sheep_03;
-    @BindView(R.id.understand_sheep_04)
-    ImageView understand_sheep_04;
-    @BindView(R.id.understand_sheep_05)
-    ImageView understand_sheep_05;
-
-    private RxjavaCountDownTimer timer;
+    @BindView(R.id.video_view)
+    StandardGSYVideoPlayer videoView;
+
+    OrientationUtils orientationUtils;
+
     @Override
     protected int getLayoutId() {
         return R.layout.act_understand_sheep;
     }
 
     @Override
+    protected void onCreate(Bundle bundle) {
+        super.onCreate(bundle);
+        hideSystemNavBar();
+        hideSystemStatusBar();
+    }
+
+    @Override
     public void initView() {
-        activity = this;
-        TitleBarUtils.getInstance()
-                .setTitle(this, "一分钟快速了解小绵羊");
-        activity.findViewById(R.id.img_baseactivity_title).setOnClickListener(new View.OnClickListener() {
-            @Override
-            public void onClick(View view) {
-                activity.finish();
-                setDontShowNewbieTaskDialog();
-            }
+
+    }
+
+    @Override
+    public void onPostCreate(Bundle bundle) {
+        super.onPostCreate(bundle);
+        orientationUtils = new OrientationUtils(this, videoView);
+        orientationUtils.setEnable(true);
+		CommonUtil.getInstance().getConfigValue("small_sheep_introduce_video", url -> {
+            if (TextUtils.isEmpty(url)){
+				finish();
+			}
+			startPlayVideo(url);
         });
-        GlideImageLoader.setImage(understand_sheep_01, "http://cdngame.kuaifazs.com/understand_sheep_01.png");
-        GlideImageLoader.setImage(understand_sheep_02, "http://cdngame.kuaifazs.com/understand_sheep_02.png");
-        GlideImageLoader.setImage(understand_sheep_03, "http://cdngame.kuaifazs.com/understand_sheep_03.png");
-        GlideImageLoader.setImage(understand_sheep_04, "http://cdngame.kuaifazs.com/understand_sheep_04.png");
-        GlideImageLoader.setImage(understand_sheep_05, "http://cdngame.kuaifazs.com/understand_sheep_05.png");
-        newbie_task_record = (NewbieTaskRecord) getIntent().getSerializableExtra(NewbieTaskRecord.class.getSimpleName());
-        final int count = BuildConfig.DEBUG ? 10 : 15;
-        timer = RxjavaCountDownTimer.getInstance(count)
-                .setOnTickListener(new RxjavaCountDownTimer.OnTickListener() {
+    }
+
+    @Override
+    public void onConfigurationChanged(Configuration newConfig) {
+        super.onConfigurationChanged(newConfig);
+    }
+
+    private void startPlayVideo(String url) {
+        GSYVideoOptionBuilder gsyVideoOption = new GSYVideoOptionBuilder();
+        gsyVideoOption.setIsTouchWiget(true)
+                .setRotateViewAuto(true)
+                .setLockLand(false)
+                .setRotateWithSystem(true)
+                .setAutoFullWithSize(false)
+                .setShowFullAnimation(false)
+                .setUrl(url)
+                .setNeedLockFull(false)
+                .setCacheWithPlay(false)
+                .setVideoAllCallBack(new GSYSampleCallBack() {
                     @Override
-                    public void onFinish() {
-                        i_understand_tv.setEnabled(true);
-                        i_understand_tv.setText("我知道了");
+                    public void onPrepared(String url, Object... objects) {
+                        super.onPrepared(url, objects);
+                        LogUtil.println("initPlay", "onPrepared", url, objects);
                     }
 
                     @Override
-                    public void onTicker(long time) {
-                        i_understand_tv.setEnabled(false);
-                        i_understand_tv.setText(activity.getString(R.string.tip_newbie_task_1, time));
-                    }
-                }).start();
-    }
-    private NewbieTaskRecord newbie_task_record;
-    private void setDontShowNewbieTaskDialog() {
-        if(newbie_task_record != null){
-            newbie_task_record.setDontShowNewbieTaskDialog(true);
-            MyDbManager.getInstance().saveOrUpdate(newbie_task_record);
-        }
-    }
+                    public void onAutoComplete(String url, Object... objects) {
+                        super.onAutoComplete(url, objects);
+                        LogUtil.println("initPlay", "onAutoComplete", url, objects);
 
-    @Override
-    public void initListener() {
-        i_understand_tv.setOnClickListener(new View.OnClickListener() {
-            @Override
-            public void onClick(View view) {
-                SheepApp.getInstance().getNetComponent().getApiService().appNewbieTaskLearnFinish()
+                        SheepApp.getInstance().getNetComponent().getApiService().appNewbieTaskLearnFinish()
                                 .subscribeOn(Schedulers.io())
                                 .observeOn(AndroidSchedulers.mainThread())
-                                .subscribe(new SheepSubscriber<BaseMessage>(activity) {
+                                .subscribe(new SheepSubscriber<BaseMessage>(SheepApp.getInstance()) {
                                     @Override
                                     public void onNext(BaseMessage baseMessage) {
                                         finish();
@@ -112,24 +120,54 @@ public class ActUnderstandSheep extends BaseActivity {
                                         G.showToast(baseMessage);
                                     }
                                 });
-            }
+                    }
+
+                    @Override
+                    public void onPlayError(String url, Object... objects) {
+                        super.onPlayError(url, objects);
+                        long curPosition = GSYVideoManager.instance().getCurPlayerManager().getCurrentPosition();
+                        LogUtil.println("initPlay", "onPlayError", url, curPosition);
+                    }
+                }).build(videoView);
+        videoView.getBackButton().setOnClickListener(v -> {
+            finish();
         });
+        videoView.getFullscreenButton().setVisibility(View.INVISIBLE);
+        videoView.startPlayLogic();
+    }
+
+    @Override
+    public void initListener() {
+
+    }
+
+    @Override
+    public void initData() {
     }
 
     @Override
     public void onBackPressed() {
+        if (GSYVideoManager.backFromWindowFull(this)) {
+            return;
+        }
         super.onBackPressed();
-        setDontShowNewbieTaskDialog();
     }
 
     @Override
-    public void initData() {
+    protected void onPause() {
+        super.onPause();
+        GSYVideoManager.onPause();
+    }
+
+    @Override
+    protected void onResume() {
+        super.onResume();
+        GSYVideoManager.onResume();
     }
 
     @Override
     protected void onDestroy() {
         super.onDestroy();
-        if(timer != null)
-            timer.clear();
+        GSYVideoManager.releaseAllVideos();
     }
 }

+ 5 - 705
app/src/main/res/layout/act_understand_sheep.xml

@@ -3,715 +3,15 @@
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/bg_gray"
+    android:background="@android:color/black"
+    android:gravity="center"
     android:orientation="vertical">
 
-    <include layout="@layout/title" />
 
-    <ScrollView
+    <com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer
+        android:id="@+id/video_view"
         android:layout_width="match_parent"
         android:layout_height="match_parent">
 
-        <android.support.constraint.ConstraintLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content">
-
-            <RelativeLayout
-                android:id="@+id/understand_sheep_top"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                app:layout_constraintTop_toTopOf="parent"
-                android:background="#259FEC" >
-
-
-                <ImageView
-                    android:layout_width="56dp"
-                    android:layout_height="wrap_content"
-                    android:layout_marginStart="32dp"
-                    android:layout_marginTop="70dp"
-                    android:adjustViewBounds="true"
-                    android:scaleType="fitXY"
-                    android:src="@mipmap/understand_sheep_1" />
-
-                <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:layout_marginStart="28dp"
-                    android:layout_marginTop="90dp"
-                    android:text="小绵羊是什么"
-                    android:textColor="@color/white"
-                    android:textSize="30sp"
-                    android:textStyle="bold" />
-
-                <TextView
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginEnd="12dp"
-                    android:layout_marginStart="28dp"
-                    android:layout_marginTop="150dp"
-                    android:layout_marginBottom="50dp"
-                    android:lineSpacingExtra="9dp"
-                    android:text="@string/tip_simple_words_app_description"
-                    android:textColor="@color/white"
-                    android:textSize="14sp" />
-            </RelativeLayout>
-
-            <RelativeLayout
-                android:id="@+id/understand_sheep_center"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                app:layout_constraintTop_toBottomOf="@+id/understand_sheep_top"
-                android:paddingBottom="@dimen/content_padding_40"
-                android:background="#EFF0F2" >
-                <ImageView
-                    android:layout_width="56dp"
-                    android:layout_height="wrap_content"
-                    android:layout_marginStart="32dp"
-                    android:layout_marginTop="70dp"
-                    android:adjustViewBounds="true"
-                    android:scaleType="fitXY"
-                    android:src="@mipmap/understand_sheep_2" />
-
-                <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:layout_marginStart="28dp"
-                    android:layout_marginTop="90dp"
-                    android:text="@string/task_submit_flow"
-                    android:textColor="#259FEC"
-                    android:textSize="30sp"
-                    android:textStyle="bold" />
-
-
-                <TextView
-                    android:id="@+id/understand_sheep_center_lz"
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:layout_marginStart="60dp"
-                    android:layout_marginTop="150dp"
-                    android:text="(例子)"
-                    android:textColor="#259FEC"
-                    android:textSize="15sp" />
-
-
-                <ImageView
-                    android:id="@+id/understand_sheep_01"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginEnd="20dp"
-                    android:layout_marginStart="54dp"
-                    android:layout_marginTop="10dp"
-                    android:layout_below="@+id/understand_sheep_center_lz"
-                    android:adjustViewBounds="true"
-                    android:scaleType="fitXY" />
-
-                <ImageView
-                    android:id="@+id/understand_sheep_02"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginEnd="20dp"
-                    android:layout_marginStart="54dp"
-                    android:layout_marginTop="30dp"
-                    android:layout_below="@+id/understand_sheep_01"
-                    android:adjustViewBounds="true"
-                    android:scaleType="fitXY" />
-
-                <ImageView
-                    android:id="@+id/understand_sheep_03"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginEnd="20dp"
-                    android:layout_marginStart="54dp"
-                    android:layout_marginTop="30dp"
-                    android:layout_below="@+id/understand_sheep_02"
-                    android:adjustViewBounds="true"
-                    android:scaleType="fitXY" />
-
-                <ImageView
-                    android:id="@+id/understand_sheep_04"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginEnd="20dp"
-                    android:layout_marginStart="54dp"
-                    android:layout_marginTop="30dp"
-                    android:layout_below="@+id/understand_sheep_03"
-                    android:adjustViewBounds="true"
-                    android:scaleType="fitXY" />
-
-                <ImageView
-                    android:id="@+id/understand_sheep_05"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginEnd="20dp"
-                    android:layout_marginStart="54dp"
-                    android:layout_marginTop="30dp"
-                    android:layout_below="@+id/understand_sheep_04"
-                    android:adjustViewBounds="true"
-                    android:scaleType="fitXY" />
-
-
-                <View
-                    android:layout_width="22dp"
-                    android:layout_height="22dp"
-                    android:layout_marginStart="18dp"
-                    android:layout_alignTop="@+id/understand_sheep_01"
-                    android:background="@drawable/shape_circle_blue_translucent" />
-
-                <View
-                    android:layout_width="13dp"
-                    android:layout_height="13dp"
-                    android:layout_marginStart="23dp"
-                    android:layout_marginTop="4dp"
-                    android:layout_alignTop="@+id/understand_sheep_01"
-                    android:background="@drawable/shape_circle_blue" />
-
-                <View
-                    android:layout_width="22dp"
-                    android:layout_height="22dp"
-                    android:layout_marginStart="18dp"
-                    android:layout_alignTop="@+id/understand_sheep_02"
-                    android:background="@drawable/shape_circle_blue_translucent" />
-
-                <View
-                    android:layout_width="13dp"
-                    android:layout_height="13dp"
-                    android:layout_marginStart="23dp"
-                    android:layout_marginTop="4dp"
-                    android:layout_alignTop="@+id/understand_sheep_02"
-                    android:background="@drawable/shape_circle_blue" />
-
-                <View
-                    android:layout_width="22dp"
-                    android:layout_height="22dp"
-                    android:layout_marginStart="18dp"
-                    android:layout_alignTop="@+id/understand_sheep_03"
-                    android:background="@drawable/shape_circle_blue_translucent" />
-
-                <View
-                    android:layout_width="13dp"
-                    android:layout_height="13dp"
-                    android:layout_marginStart="23dp"
-                    android:layout_marginTop="4dp"
-                    android:layout_alignTop="@+id/understand_sheep_03"
-                    android:background="@drawable/shape_circle_blue" />
-
-                <View
-                    android:layout_width="22dp"
-                    android:layout_height="22dp"
-                    android:layout_marginStart="18dp"
-                    android:layout_alignTop="@+id/understand_sheep_04"
-                    android:background="@drawable/shape_circle_blue_translucent" />
-
-                <View
-                    android:layout_width="13dp"
-                    android:layout_height="13dp"
-                    android:layout_marginStart="23dp"
-                    android:layout_marginTop="4dp"
-                    android:layout_alignTop="@+id/understand_sheep_04"
-                    android:background="@drawable/shape_circle_blue" />
-                <View
-                    android:layout_width="22dp"
-                    android:layout_height="22dp"
-                    android:layout_marginStart="18dp"
-                    android:layout_alignTop="@+id/understand_sheep_05"
-                    android:background="@drawable/shape_circle_blue_translucent" />
-
-                <View
-                    android:layout_width="13dp"
-                    android:layout_height="13dp"
-                    android:layout_marginStart="23dp"
-                    android:layout_marginTop="4dp"
-                    android:layout_alignTop="@+id/understand_sheep_05"
-                    android:background="@drawable/shape_circle_blue" />
-
-                <View
-                    android:layout_width="1px"
-                    android:layout_height="1152dp"
-                    android:layout_marginStart="29dp"
-                    android:layout_alignTop="@+id/understand_sheep_01"
-                    android:layout_alignBottom="@+id/understand_sheep_05"
-                    android:background="#259FEC" />
-            </RelativeLayout>
-
-            <RelativeLayout
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                app:layout_constraintTop_toBottomOf="@+id/understand_sheep_center"
-                android:background="#259FEC" >
-
-
-                <ImageView
-                    android:layout_width="56dp"
-                    android:layout_height="wrap_content"
-                    android:layout_marginStart="32dp"
-                    android:layout_marginTop="70dp"
-                    android:adjustViewBounds="true"
-                    android:scaleType="fitXY"
-                    android:src="@mipmap/understand_sheep_3" />
-
-                <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:layout_marginStart="28dp"
-                    android:layout_marginTop="90dp"
-                    android:text="小绵羊可以做什么"
-                    android:textColor="@color/white"
-                    android:textSize="30sp"
-                    android:textStyle="bold" />
-
-                <android.support.constraint.ConstraintLayout
-                    android:id="@+id/understand_sheep_bottom_1"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginTop="150dp">
-
-                    <ImageView
-                        android:layout_width="49dp"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="28dp"
-                        android:adjustViewBounds="true"
-                        android:scaleType="fitXY"
-                        android:src="@mipmap/understand_sheep_a"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <View
-                        android:layout_width="56dp"
-                        android:layout_height="56dp"
-                        android:layout_marginTop="24dp"
-                        android:background="@drawable/shape_circle_white"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <ImageView
-                        android:layout_width="49dp"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="28dp"
-                        android:adjustViewBounds="true"
-                        android:scaleType="fitXY"
-                        android:src="@mipmap/understand_sheep_b"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <View
-                        android:layout_width="56dp"
-                        android:layout_height="56dp"
-                        android:layout_marginTop="24dp"
-                        android:background="@drawable/shape_circle_white"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:id="@+id/understand_sheep_a_tv_1"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="100dp"
-                        android:gravity="center"
-                        android:text="游戏试玩"
-                        android:textColor="@color/white"
-                        android:textSize="25sp"
-                        app:layout_constraintEnd_toStartOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintStart_toStartOf="parent"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:id="@+id/understand_sheep_b_tv_1"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="100dp"
-                        android:gravity="center"
-                        android:text="APP试用"
-                        android:textColor="@color/white"
-                        android:textSize="25sp"
-                        app:layout_constraintEnd_toEndOf="parent"
-                        app:layout_constraintStart_toEndOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="150dp"
-                        android:gravity="center"
-                        android:text="@string/customize_game_task"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="150dp"
-                        android:gravity="center"
-                        android:text="根据合作需求"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="170dp"
-                        android:gravity="center"
-                        android:text="操作简单"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="170dp"
-                        android:gravity="center"
-                        android:text="推出APP"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="190dp"
-                        android:gravity="center"
-                        android:text="轻松试玩游戏"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_a_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="190dp"
-                        android:gravity="center"
-                        android:text="@string/try_task"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_b_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-                </android.support.constraint.ConstraintLayout>
-
-                <android.support.constraint.ConstraintLayout
-                    android:id="@+id/understand_sheep_bottom_2"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_below="@+id/understand_sheep_bottom_1"
-                    android:layout_marginTop="40dp">
-
-                    <ImageView
-                        android:layout_width="49dp"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="28dp"
-                        android:adjustViewBounds="true"
-                        android:scaleType="fitXY"
-                        android:src="@mipmap/understand_sheep_c"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <View
-                        android:layout_width="56dp"
-                        android:layout_height="56dp"
-                        android:layout_marginTop="24dp"
-                        android:background="@drawable/shape_circle_white"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <ImageView
-                        android:layout_width="49dp"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="28dp"
-                        android:adjustViewBounds="true"
-                        android:scaleType="fitXY"
-                        android:src="@mipmap/understand_sheep_d"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <View
-                        android:layout_width="56dp"
-                        android:layout_height="56dp"
-                        android:layout_marginTop="24dp"
-                        android:background="@drawable/shape_circle_white"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:id="@+id/understand_sheep_c_tv_1"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="100dp"
-                        android:gravity="center"
-                        android:text="云端挂机"
-                        android:textColor="@color/white"
-                        android:textSize="25sp"
-                        app:layout_constraintEnd_toStartOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintStart_toStartOf="parent"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:id="@+id/understand_sheep_d_tv_1"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="100dp"
-                        android:gravity="center"
-                        android:text=" 信用卡 "
-                        android:textColor="@color/white"
-                        android:textSize="25sp"
-                        app:layout_constraintEnd_toEndOf="parent"
-                        app:layout_constraintStart_toEndOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="150dp"
-                        android:gravity="center"
-                        android:text="利用闲置微信号"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="150dp"
-                        android:gravity="center"
-                        android:text="金融业务"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="170dp"
-                        android:gravity="center"
-                        android:text="通过机器人"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="170dp"
-                        android:gravity="center"
-                        android:text="线上"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="190dp"
-                        android:gravity="center"
-                        android:text="@string/auto_finish_task"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_c_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="190dp"
-                        android:gravity="center"
-                        android:text="申请信用卡"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_d_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-                </android.support.constraint.ConstraintLayout>
-
-                <android.support.constraint.ConstraintLayout
-                    android:id="@+id/understand_sheep_bottom_3"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_below="@+id/understand_sheep_bottom_2"
-                    android:layout_marginTop="40dp">
-
-                    <ImageView
-                        android:layout_width="49dp"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="28dp"
-                        android:adjustViewBounds="true"
-                        android:scaleType="fitXY"
-                        android:src="@mipmap/understand_sheep_e"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <View
-                        android:layout_width="56dp"
-                        android:layout_height="56dp"
-                        android:layout_marginTop="24dp"
-                        android:background="@drawable/shape_circle_white"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <ImageView
-                        android:layout_width="49dp"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="28dp"
-                        android:adjustViewBounds="true"
-                        android:scaleType="fitXY"
-                        android:src="@mipmap/understand_sheep_f"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <View
-                        android:layout_width="56dp"
-                        android:layout_height="56dp"
-                        android:layout_marginTop="24dp"
-                        android:background="@drawable/shape_circle_white"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:id="@+id/understand_sheep_e_tv_1"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="100dp"
-                        android:gravity="center"
-                        android:text="好友邀请"
-                        android:textColor="@color/white"
-                        android:textSize="25sp"
-                        app:layout_constraintEnd_toStartOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintStart_toStartOf="parent"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:id="@+id/understand_sheep_f_tv_1"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="100dp"
-                        android:gravity="center"
-                        android:text="现金提现"
-                        android:textColor="@color/white"
-                        android:textSize="25sp"
-                        app:layout_constraintEnd_toEndOf="parent"
-                        app:layout_constraintStart_toEndOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="150dp"
-                        android:gravity="center"
-                        android:text="邀请好友"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="150dp"
-                        android:gravity="center"
-                        android:text="支持微信"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="170dp"
-                        android:gravity="center"
-                        android:text="一起玩"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="170dp"
-                        android:gravity="center"
-                        android:text="提现"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="190dp"
-                        android:gravity="center"
-                        android:text="享受额外收益"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_e_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-
-                    <TextView
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:layout_marginTop="190dp"
-                        android:gravity="center"
-                        android:text="实时到账"
-                        android:textColor="@color/white"
-                        android:textSize="12sp"
-                        app:layout_constraintEnd_toEndOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintStart_toStartOf="@+id/understand_sheep_f_tv_1"
-                        app:layout_constraintTop_toTopOf="parent" />
-                </android.support.constraint.ConstraintLayout>
-                <TextView
-                    android:id="@+id/i_understand_tv"
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:layout_centerHorizontal="true"
-                    android:layout_below="@+id/understand_sheep_bottom_3"
-                    android:layout_marginTop="60dp"
-                    android:layout_marginBottom="40dp"
-                    android:background="@drawable/sp_appointment_bg"
-                    android:paddingBottom="@dimen/content_padding_10"
-                    android:paddingLeft="@dimen/content_padding_30"
-                    android:paddingRight="@dimen/content_padding_30"
-                    android:paddingTop="@dimen/content_padding_10"
-                    android:text="我知道了"
-                    android:textColor="#259FEC" />
-            </RelativeLayout>
-
-        </android.support.constraint.ConstraintLayout>
-    </ScrollView>
+    </com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer>
 </LinearLayout>

BIN
app/src/main/res/mipmap-xxhdpi/understand_sheep_1.webp


BIN
app/src/main/res/mipmap-xxhdpi/understand_sheep_2.webp


BIN
app/src/main/res/mipmap-xxhdpi/understand_sheep_3.webp


BIN
app/src/main/res/mipmap-xxhdpi/understand_sheep_a.webp


BIN
app/src/main/res/mipmap-xxhdpi/understand_sheep_b.webp


BIN
app/src/main/res/mipmap-xxhdpi/understand_sheep_c.webp


BIN
app/src/main/res/mipmap-xxhdpi/understand_sheep_d.webp


BIN
app/src/main/res/mipmap-xxhdpi/understand_sheep_e.webp


BIN
app/src/main/res/mipmap-xxhdpi/understand_sheep_f.webp