1.2号广告位播放从第三方广告播放恢复为HomeMutilView

This commit is contained in:
2025-12-09 15:17:05 +08:00
parent 81e5f90ab8
commit 744256fc33
6 changed files with 17 additions and 17 deletions

View File

@@ -77,7 +77,7 @@ import java.util.Map;
public class Launcher extends FragmentActivity implements SplashView.SplashAdListener {
public static final String TAG="com.ik.mboxlauncher.ui.fragment.MainFragment";
private MultiView layout_video,layout_music,layout_primevideo,layout_filemanager,layout_hbomax,layout_setting,layout_youtube,layout_recommend,layout_netflix,layout_chrome;
private AdMultiView layout_miracastreceive;
private MultiView layout_miracastreceive;
private int[] imageResIds={R.drawable.img_video,R.drawable.img_miracastreceive,R.drawable.img_youtube,R.drawable.img_recommend,R.drawable.img_music,R.drawable.img_netflix,R.drawable.img_primevideo,R.drawable.img_filemanager,R.drawable.img_chrome,R.drawable.img_hbomax,R.drawable.img_setting};
private CustomRecyclerView gv_shortcut,grid_coustom_apps;
private StatusLoader mStatusLoader;
@@ -156,7 +156,7 @@ public class Launcher extends FragmentActivity implements SplashView.SplashAdLi
ad_full_root = findViewById(R.id.ad_full_root);
layout_miracastreceive = findViewById(R.id.layout_miracastreceive);
layout_miracastreceive.setOnClickListener(onClickListener);
layout_miracastreceive.setFullRooView(ad_full_root);
// layout_miracastreceive.setFullRooView(ad_full_root);
multiViewArray[1]=layout_miracastreceive;
layout_youtube = findViewById(R.id.layout_youtube);
layout_youtube.setOnClickListener(onClickListener);

View File

@@ -29,15 +29,15 @@ public class MyApplication extends Application {
AppManager.init(getApplicationContext());
ADManager.init(getApplicationContext());
SharePreUtils.getInstance(getApplicationContext());
AdConfig config = new AdConfig.Builder()
.isDebug(false)//是否开始 debug 模式开启会打印更多log供开发调试
.productName("aike")//正式发版时使用正式的PN
.productTag("launcher")//正式发版时使用正式的PT
// AdConfig config = new AdConfig.Builder()
// .isDebug(false)//是否开始 debug 模式开启会打印更多log供开发调试
// .productName("aike")//正式发版时使用正式的PN
// .productTag("launcher")//正式发版时使用正式的PT
// .productName("test")//仅限开发测试使用
// .productTag("test")//仅限开发测试使用
.adId(getAdId(this))
.build();
AdManager.getInstance().init(MyApplication.this, config);
// .adId(getAdId(this))
// .build();
// AdManager.getInstance().init(MyApplication.this, config);
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread thread, Throwable throwable) {

View File

@@ -98,13 +98,13 @@
/>
<com.ik.mboxlauncher.view.AdMultiView
<com.ik.mboxlauncher.view.HomeMultiView
android:id="@+id/layout_miracastreceive"
android:layout_width="285dp"
android:layout_height="117dp"
android:layout_marginStart="64dp"
android:layout_marginTop="302dp"
app:adMultiViewImage="@drawable/img_miracastreceive"
app:multiViewImage="@drawable/img_miracastreceive"
android:focusableInTouchMode="true"
android:descendantFocusability="beforeDescendants"
/>

View File

@@ -98,13 +98,13 @@
/>
<com.ik.mboxlauncher.view.AdMultiView
<com.ik.mboxlauncher.view.HomeMultiView
android:id="@+id/layout_miracastreceive"
android:layout_width="321dp"
android:layout_height="131dp"
android:layout_marginStart="72dp"
android:layout_marginTop="339dp"
app:adMultiViewImage="@drawable/img_miracastreceive"
app:multiViewImage="@drawable/img_miracastreceive"
android:focusableInTouchMode="true"
android:descendantFocusability="beforeDescendants"
/>

View File

@@ -98,13 +98,13 @@
/>
<com.ik.mboxlauncher.view.AdMultiView
<com.ik.mboxlauncher.view.HomeMultiView
android:id="@+id/layout_miracastreceive"
android:layout_width="428dp"
android:layout_height="175dp"
android:layout_marginStart="96dp"
android:layout_marginTop="453dp"
app:adMultiViewImage="@drawable/img_miracastreceive"
app:multiViewImage="@drawable/img_miracastreceive"
android:focusableInTouchMode="true"
android:descendantFocusability="beforeDescendants"
/>

View File

@@ -97,13 +97,13 @@
/>
<com.ik.mboxlauncher.view.AdMultiView
<com.ik.mboxlauncher.view.HomeMultiView
android:id="@+id/layout_miracastreceive"
android:layout_width="321dp"
android:layout_height="131dp"
android:layout_marginStart="72dp"
android:layout_marginTop="339dp"
app:adMultiViewImage="@drawable/img_miracastreceive"
app:multiViewImage="@drawable/img_miracastreceive"
android:focusableInTouchMode="true"
android:descendantFocusability="beforeDescendants"
/>