zeki лет назад: 5
Родитель
Сommit
a176ceb8fa

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

@@ -457,6 +457,7 @@
                 android:name="com.sheep.gamegroup.view.activity.ActWebX5"
                 android:configChanges="orientation|screenSize"
                 android:exported="true"
+                android:process=":webProcess"
                 android:screenOrientation="portrait"
                 android:theme="@style/AppActionTheme"/>
         <activity

+ 9 - 5
app/src/main/java/com/sheep/gamegroup/view/activity/ActMain.java

@@ -10,10 +10,7 @@ import android.support.v4.app.FragmentTransaction;
 import android.text.TextUtils;
 import android.view.MotionEvent;
 import android.view.View;
-import android.widget.LinearLayout;
-import android.widget.RelativeLayout;
-import android.widget.TextView;
-import android.widget.Toast;
+import android.widget.*;
 import com.alibaba.fastjson.JSONObject;
 import com.kfzs.duanduan.cardview.ScreenUtil;
 import com.kfzs.duanduan.utils.StatusBarUtils;
@@ -93,7 +90,8 @@ public class ActMain extends BaseActYmPermissionCheck {
     RelativeLayout main_layout;
     @BindView(R.id.main_header)
     View main_header;
-
+    @BindView(R.id.iv_xxl)
+    ImageView ivXXL;
 
     @Override
     protected void onCreate(@Nullable Bundle savedInstanceState) {
@@ -107,6 +105,12 @@ public class ActMain extends BaseActYmPermissionCheck {
                 ActionUtil.getInstance().addNextAction(MiddleSchemeAct.SHOW_DIALOG_GAME_OR_GIFT_TASK, game_id);
             }
         }
+        ivXXL.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View v) {
+                Jump2View.getInstance().goWeb(ActMain.this, "http://smallstation.9yan.io/block_puzzle/", "消消乐");
+            }
+        });
     }
 
     @Override

+ 14 - 11
app/src/main/java/com/sheep/jiuyan/samllsheep/SheepApp.java

@@ -203,7 +203,7 @@ public class SheepApp extends MultiDexApplication {
     public void onCreate() {
 //        configStrictMode();
         super.onCreate();
-        //initWebViewDataDirectory(this);
+        initWebViewDataDirectory(this);
         if (AppUtil.isMainProcess(this) || AppUtil.isWebProcess(this)) {
             boolean isNotSupport = Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN_MR1;
             ContextHolder.setContext(this);
@@ -228,16 +228,9 @@ public class SheepApp extends MultiDexApplication {
             /*Rx兜底策略*/
             RxJavaPlugins.setErrorHandler(throwable -> Log.e("RxThrowable", throwable.getMessage()));
 
-            /*点客广告SDK接入*/
-            TMSDKContext.setTMSDKLogEnable(BuildConfig.DEBUG);
-            TMSDKContext.init(this, new AbsTMSConfig() {
-                @Override
-                public String getServerAddress() {
-                    return "mazu.3g.qq.com";
-                }
-            });
-
-            /*三方广告SDK接入,游可盈、优投等*/
+        }
+        if(AppUtil.isMainProcess(this)){
+            /*三方广告SDK接入,点客、游可盈、优投等*/
             initThirdAd();
         }
     }
@@ -259,6 +252,16 @@ public class SheepApp extends MultiDexApplication {
 
     //初始化三方广告SDK
     private void initThirdAd() {
+
+        /*点客广告SDK接入*/
+        TMSDKContext.setTMSDKLogEnable(BuildConfig.DEBUG);
+        TMSDKContext.init(this, new AbsTMSConfig() {
+            @Override
+            public String getServerAddress() {
+                return "mazu.3g.qq.com";
+            }
+        });
+
         SheepApp.getInstance().getNetComponent()
                 .getApiService()
                 .commonConfig("third_ad")

+ 77 - 69
app/src/main/res/layout/act_bottom_bar.xml

@@ -1,93 +1,101 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:app="http://schemas.android.com/apk/res-auto"
-    android:id="@+id/main_layout"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:clipChildren="false">
+                xmlns:app="http://schemas.android.com/apk/res-auto"
+                android:id="@+id/main_layout"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:clipChildren="false">
 
     <ImageView
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:adjustViewBounds="true"
-        android:src="@mipmap/home_blue_bg" />
+            android:id="@+id/iv_xxl"
+            android:layout_width="56dp"
+            android:layout_height="56dp"
+            android:elevation="2dp"
+            android:layout_margin="56dp"
+            android:src="@mipmap/sheep_logo"/>
+
+    <ImageView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:adjustViewBounds="true"
+            android:src="@mipmap/home_blue_bg"/>
 
     <RelativeLayout
-        android:id="@+id/main_header"
-        android:layout_width="match_parent"
-        android:layout_height="40dp"
-        android:layout_marginTop="32dp"></RelativeLayout>
+            android:id="@+id/main_header"
+            android:layout_width="match_parent"
+            android:layout_height="40dp"
+            android:layout_marginTop="32dp"></RelativeLayout>
 
     <include
-        layout="@layout/main_frame_layout"
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:layout_marginTop="72dp"
-        android:layout_marginBottom="@dimen/bottom_height" />
+            layout="@layout/main_frame_layout"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:layout_marginTop="72dp"
+            android:layout_marginBottom="@dimen/bottom_height"/>
 
 
     <View
-        android:id="@+id/tab_line"
-        android:layout_width="match_parent"
-        android:layout_height="2px"
-        android:layout_above="@id/tab_container"
-        android:background="#e6e6e6" />
+            android:id="@+id/tab_line"
+            android:layout_width="match_parent"
+            android:layout_height="2px"
+            android:layout_above="@id/tab_container"
+            android:background="#e6e6e6"/>
 
     <RadioGroup
-        android:id="@+id/tab_container"
-        android:layout_width="match_parent"
-        android:layout_height="@dimen/bottom_height"
-        android:layout_alignParentStart="true"
-        android:layout_alignParentBottom="true"
-        android:background="@color/home_bottom"
-        android:gravity="end"
-        android:orientation="horizontal">
+            android:id="@+id/tab_container"
+            android:layout_width="match_parent"
+            android:layout_height="@dimen/bottom_height"
+            android:layout_alignParentStart="true"
+            android:layout_alignParentBottom="true"
+            android:background="@color/home_bottom"
+            android:gravity="end"
+            android:orientation="horizontal">
 
         <RadioButton
-            android:id="@+id/tab_1"
-            android:layout_width="0dp"
-            android:layout_height="match_parent"
-            android:layout_weight="1"
-            android:background="#0000ffff"
-            android:button="@null"
-            android:drawableTop="@drawable/drawable_selector_task"
-            android:gravity="center"
-            android:paddingTop="@dimen/bottom_tab_pt"
-            android:text="@string/tab_viewpager_gamestore"
-            android:textColor="@color/selector_color_tab_home"
-            android:textSize="10sp" />
+                android:id="@+id/tab_1"
+                android:layout_width="0dp"
+                android:layout_height="match_parent"
+                android:layout_weight="1"
+                android:background="#0000ffff"
+                android:button="@null"
+                android:drawableTop="@drawable/drawable_selector_task"
+                android:gravity="center"
+                android:paddingTop="@dimen/bottom_tab_pt"
+                android:text="@string/tab_viewpager_gamestore"
+                android:textColor="@color/selector_color_tab_home"
+                android:textSize="10sp"/>
 
         <RadioButton
-            android:id="@+id/tab_2"
-            android:layout_width="75dp"
-            android:layout_height="68dp"
-            android:layout_gravity="bottom"
-            android:background="@drawable/tab_big_yq"
-            android:button="@null"
-            android:gravity="center"
-            android:textSize="0sp" />
+                android:id="@+id/tab_2"
+                android:layout_width="75dp"
+                android:layout_height="68dp"
+                android:layout_gravity="bottom"
+                android:background="@drawable/tab_big_yq"
+                android:button="@null"
+                android:gravity="center"
+                android:textSize="0sp"/>
 
         <RadioButton
-            android:id="@+id/tab_3"
-            android:layout_width="0dp"
-            android:layout_height="match_parent"
-            android:layout_weight="1"
-            android:background="#000000ff"
-            android:button="@null"
-            android:drawableTop="@drawable/drawable_selector_game_center"
-            android:gravity="center"
-            android:paddingTop="@dimen/bottom_tab_pt"
-            android:text="@string/tab_viewpager_classification"
-            android:textColor="@color/selector_color_tab_game"
-            android:textSize="10sp" />
+                android:id="@+id/tab_3"
+                android:layout_width="0dp"
+                android:layout_height="match_parent"
+                android:layout_weight="1"
+                android:background="#000000ff"
+                android:button="@null"
+                android:drawableTop="@drawable/drawable_selector_game_center"
+                android:gravity="center"
+                android:paddingTop="@dimen/bottom_tab_pt"
+                android:text="@string/tab_viewpager_classification"
+                android:textColor="@color/selector_color_tab_game"
+                android:textSize="10sp"/>
 
         <!--<com.airbnb.lottie.LottieAnimationView-->
-            <!--android:id="@+id/test_anim_view"-->
-            <!--app:lottie_fileName="data.json"-->
-            <!--app:lottie_loop="true"-->
-            <!--app:lottie_autoPlay="true"-->
-            <!--android:layout_width="50dp"-->
-            <!--android:layout_height="50dp" />-->
+        <!--android:id="@+id/test_anim_view"-->
+        <!--app:lottie_fileName="data.json"-->
+        <!--app:lottie_loop="true"-->
+        <!--app:lottie_autoPlay="true"-->
+        <!--android:layout_width="50dp"-->
+        <!--android:layout_height="50dp" />-->
 
     </RadioGroup>