onViewCreated

open override fun onViewCreated(view: View, savedInstanceState: Bundle?)

Call super.onViewCreated() and activate data binding. Implements dyslexic font setting.

Use this Fragment subclass as lifecycleOwner for data binding and assign the other variables to use them in fragment_setting.xml. You can find these variables declared in the section of fragment_setting.xml. In addition, a listener is set here that changes the value of dyslexicFont in sharedViewModel when the switch for the dyslexic font setting is pressed.