Android Studio – How can I use a Timer of 2 seconds inside a fragment?
This is my Fragment.kt class SplashFragment : Fragment() { override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { return inflater.inflate(R.layout.fragment_splash, container, false) } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) // My Timer Timer().schedule(object :…