Replies: 1 comment
-
The example app uses fragments actually. You only need to do the getDelegate() in your activity class, and it will work in all fragments contained in this activity, you don't need to add anything to your fragments. Reword.reword(...) just tries to update the texts of whatever view you pass to it, if you want to update the whole view hierarchy just pass in the root view: // The layout containing the views you want to localize
val rootView = window.decorView.findViewById<ContentFrameLayout>(android.R.id.content)
Reword.reword(rootView) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have not found an example using fragments. If I can get the getDelegate to work in my activity class do I need to do anything with any fragments later? Most examples are very simple but I have a more complicated use case.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions