Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fun View.string(@StringRes id: Int): ReadOnlyProperty<View, String>
= StringDelegate(contextProvider, id)
fun Activity.string(@StringRes id: Int): ReadOnlyProperty<Activity, String>
= StringDelegate(contextProvider, id)
fun Fragment.string(@StringRes id: Int): ReadOnlyProperty<Fragment, String>
= StringDelegate(contextProvider, id)
private class StringDelegate : ReadOnlyProperty<Any, Stirng>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.