fragment tts in android1 [fragment lifecycle] onCreatView와 onViewCreated 프로젝트에서 tts(Text to Speech) 부분을 하다가 오류가 떠서 정리해본다. Activity에서 fragment가 나올 때 fragment의 tts가 실행되어야 하는데, fragment가 나올 때 fragment의 tts가 작동되지 않았다. 아무 음성도 나지 않다가 fragment의 텍스트를 터치하면 Activity의 tts가 실행되었다.. 문제는 fragment 부분에 있었다. override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View { viewBinding = FragmentTutorialTxt2Binding.inflate(layoutInflater.. 2023. 1. 5. 이전 1 다음