и посмотреть медиа
Kotlin | Interview Questions
и посмотреть медиа
Interview questions for Kotlin developers with answers.
Interview questions for Kotlin developers with answers.
AI bot for text-to-speech and voice cloning in Telegram. Create audio using neural network quickly and easily.
Kotlin interview questions: extensions, coroutines, collections. With code examples and explanations for Android and backend.
🤔 Какие способы навигации знаешь? В Android есть несколько способов навигации между экранами. Давай разберём основные. 🟠Activity-based навигация Каждый экран – это отдельная Activity, переход осуществляется с помощью Intent. val intent = Intent(this, SecondActivity::class.java) startActivity(intent) 🟠Fragment-based навигация Один Activity содержит несколько Fragment, навигация через FragmentManager. supportFragmentManager.beginTransaction() .replace(R.id.container, SecondFragment()) .addToBackStack(null) .commit() 🟠Navigation Component (Jetpack) Google рекомендует Navigation Component для удобной работы с Fragment. findNavController().navigate(R.id.action_firstFragment_to_secondFragment) 🟠Bottom Navigation / Tab Navigation Используется BottomNavigationView или TabLayout для переключения между экранами. bottomNavigationView.setOnNavigationItemSelectedListener { item -> when (item.itemId) { R.id.home -> replaceFragment(HomeFragment()) R.id.profile -> replaceFragment(ProfileFragment()) } true } 🟠Drawer Navigation (Navigation Drawer) Боковое меню (DrawerLayout) с пунктами навигации. drawerLayout.openDrawer(GravityCompat.START) 🟠Deep Links и App Links Навигация через ссылки (например, myapp://profile/123). 🟠Navigation в Jetpack Compose Используется NavHost и NavController. NavHost(navController, startDestination = "home") { composable("home") { HomeScreen(navController) } composable("profile") { ProfileScreen(navController) } } Ставь 👍 и забирай 📚 Базу знаний
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!