EarnApp #6
MainActivity import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.os.CountDownTimerimport android.widget.Toastimport androidx.recyclerview.widget.LinearLayoutManagerimport com.google.android.gms.ads.*import com.google.android.gms.ads.interstitial.InterstitialAdimport com.google.android.gms.ads.interstitial.InterstitialAdLoadCallbackimport com.neco_desarrollo.earnapp.adapters.CategoryAdapterimport com.neco_desarrollo.earnapp.adapters.ContentManagerimport com.neco_desarrollo.earnapp.databinding.ActivityMainBindingimport kotlin.random.Randomclass MainActivity : AppCompatActivity(), CategoryAdapter.Listener { private lateinit var binding: ActivityMainBinding private var adapter: CategoryAdapter? = null private var interAd: InterstitialAd? = null private var timer: CountDownTimer? = null private var posM: Int = 0 override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = ActivityMainBinding.inflate(layoutInflater) setContentView(binding.root) initAdMob() (application as AppMainState).showAdIfAvailable(this){} initRcView() binding.imageBg.setOnClickListener { getResult() } } private fun… Подробнее »EarnApp #6