|
Raqamli texnologiyalari vazirligi
|
bet | 2/3 | Sana | 30.05.2024 | Hajmi | 1,31 Mb. | | #257365 |
Bog'liq 1-mustaqil ish mobil ilovalarprivate fun sendIntent(context: Context, ref:String, pos:Int){ val intent = Intent(context, PlayerPage::class.java) intent.putExtra("index", pos) intent.putExtra("class", ref) ContextCompat.startActivity(context,intent,null) } private fun sendIntent(context: Context, ref:String, pos:Int){ val intent = Intent(context, PlayerPage::class.java) intent.putExtra("index", pos) intent.putExtra("class", ref) ContextCompat.startActivity(context,intent,null) }
when (intent.getStringExtra("class")) { MusicAdapter::class.java.name -> { isRepeat = true musiclistPA = ArrayList() musiclistPA.addAll(MainActivity.musicListMA) val getCurrentPlaylist = getSharedPreferences("GETDATA", Context.MODE_PRIVATE).edit() val jsonPlaylistString = GsonBuilder().create().toJson(musiclistPA) getCurrentPlaylist.putString("currentPlaylist", jsonPlaylistString) getCurrentPlaylist.apply() songPosition = intent.getIntExtra("index", 0) changeSongDataDisplay(musiclistPA, songPosition) headerView.findViewById(R.id.headerImage).setImageDrawable( ContextCompat.getDrawable( applicationContext, R.drawable.pause_header ) ) val intent = Intent(this, MusicService::class.java) bindService(intent, this, BIND_AUTO_CREATE) startService(intent) }
Mobil ilovalarda animatsiyalar bilan ishlash uchun Android va iOS platformalarida turli usullar mavjud. Bundan tashqari, obyektlar o‘rtasida harakat, effektlar, o‘lcham va rang o‘zgarishi, translyatsiyalar va boshqa animatsiyalar yaratish mumkin. Bu animatsiyalar boshqa ilovalar bilan foydalanuvchining interfeysi orqali faol tarzda bog‘liq va interaktiv his qilishini ta’minlash uchun juda muhimdir. Quyidagi usullardan foydalanish mumkin: - Mobil ilovalarda animatsiyalar bilan ishlash uchun Android va iOS platformalarida turli usullar mavjud. Bundan tashqari, obyektlar o‘rtasida harakat, effektlar, o‘lcham va rang o‘zgarishi, translyatsiyalar va boshqa animatsiyalar yaratish mumkin. Bu animatsiyalar boshqa ilovalar bilan foydalanuvchining interfeysi orqali faol tarzda bog‘liq va interaktiv his qilishini ta’minlash uchun juda muhimdir. Quyidagi usullardan foydalanish mumkin:
|
| |