import com.simplecleaner.app.R
import com.simplecleaner.app.base.BaseFragment
import com.simplecleaner.app.business.ads.AdsMgr
import com.simplecleaner.app.databinding.FragmentNativeFullBinding
import com.simplecleaner.app.ui.guide.GuideActivity


class NativeFullFragment : BaseFragment<FragmentNativeFullBinding>(FragmentNativeFullBinding::inflate) {

    var page: Int = 2

    override fun onResume() {
        super.onResume()

        if (!binding.flAd.isAdShowed) {
//            binding.flAd.adGravity = android.view.Gravity.BOTTOM or android.view.Gravity.CENTER_HORIZONTAL
            AdsMgr.showNative(binding.flAd, R.layout.layout_admob_native_full)
        }
    }

    override fun initListener() {
        super.initListener()

        binding.ivClose.setOnClickListener {
            val activity = requireActivity() as GuideActivity
            activity.next(page)
        }


    }


}