Closed ashu5398 closed 3 years ago
Sure. Assuming you use both databinding and set strings resources directly in XML, you need something like this:
Reword.reword(window
.decorView
.findViewById<ContentFrameLayout>(android.R.id.content))
binding.invalidateAll()
"this" is your root activity here, "binding" is the databinding used at your root activity. Hope this helps :)
That worked !! Thanks for help
You're welcome :)
If I have set a string from strings.xml to a textview using databinding library, then on a locale change strings are not getting updated without a recreate of activity. Can I get any help on this?