Commit da4b4ddc authored by wanglei's avatar wanglei

[拆包]新引导页

parent d0296f6f
......@@ -10,6 +10,7 @@ import com.base.appzxhy.bean.FeatureBean.Companion.PHOTO_COMPRESSION
import com.base.appzxhy.bean.FeatureBean.Companion.SCREENSHOT_CLEAN
import com.base.appzxhy.bean.FeatureBean.Companion.SIMILAR_PHOTOS
import com.base.appzxhy.bean.FeatureBean.Companion.UNINSTALL_APP
import com.base.appzxhy.business.ads.AdsMgr
import com.base.appzxhy.databinding.ActivityGuideExperienceBinding
import com.base.appzxhy.ui.dialog.StoragePermissionDialog
import com.base.appzxhy.utils.PermissionUtils.requestStoragePermission
......@@ -23,6 +24,7 @@ class GuideExperienceActivity : BaseActivity<ActivityGuideExperienceBinding>(
super.initView()
val appName = getString(R.string.app_name)
binding.tvTip.text = getString(R.string.app_function_experience_tip, appName)
AdsMgr.showNative(binding.flAd, R.layout.layout_admob_native_custom)
}
override fun handleBackCallBack() {
......@@ -48,7 +50,7 @@ class GuideExperienceActivity : BaseActivity<ActivityGuideExperienceBinding>(
}
}
dialog.dialog.setOnDismissListener {
if (!dialog.actionEd){
if (!dialog.actionEd) {
val key = arrayOf(BATTERY_INFO, UNINSTALL_APP).random()
jumpAction(key)
}
......
......@@ -37,17 +37,29 @@
</LinearLayout>
<TextView
android:foreground="?attr/selectableItemBackground"
android:id="@+id/tvBtn"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
android:layout_marginHorizontal="@dimen/dp_38"
android:layout_marginBottom="@dimen/dp_50"
android:layout_marginBottom="@dimen/dp_30"
android:background="@drawable/bg_splash_button"
android:foreground="?attr/selectableItemBackground"
android:gravity="center"
android:text="@string/experience_it_immediately"
android:textColor="@color/white"
android:textSize="@dimen/sp_16"
app:layout_constraintBottom_toBottomOf="parent" />
app:layout_constraintBottom_toTopOf="@id/flAd" />
<com.base.appzxhy.business.ads.NativeParentView
android:id="@+id/flAd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/zhanwei1" />
</com.base.appzxhy.business.ads.NativeParentView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -4,8 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F4F5F9"
tools:context=".ui.recyclebin.RecycleBinFragment">
android:background="#F4F5F9">
<FrameLayout
android:id="@+id/flTop"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment