Open amzer-n opened 6 years ago
Try this code. I am able to change the font via this code
val resourceId = resources.getIdentifier("searchTextView", "id",
Objects.requireNonNull(context)?.packageName)
val etSearch = binding.searchView.findViewById<AppCompatEditText>(resourceId)
val typeface = ResourcesCompat.getFont(context!!, R.font.poppins_regular)
etSearch.typeface = typeface
Is there any way to change the font of the input text and hint? I tried using styles but it did not work.