We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fun idToImageResource(id: Int) = ImageResource.Builder() .setAndroidResourceByResId( AndroidImageResourceByResId.Builder() .setResourceId(id) .build() ) .build()
From here:
https://github.com/joreilly/PeopleInSpace/pull/139/files#diff-4058974ed1ff8fbb817967ab294ee5a8b422543b015c50cf3481cc2fddffbe0cR119-R126
I'm using it for a component audit (in combination with LayoutPreview) but presumably it's handy for the tile renderer too.
LayoutPreview
Notes:
@DrawableRes
The text was updated successfully, but these errors were encountered:
+1 to DrawableRes. Also as an extension function on Resources.Builder, it should show up magically inside the Preview blocks and so on.
Sorry, something went wrong.
Adding in #235
No branches or pull requests
From here:
https://github.com/joreilly/PeopleInSpace/pull/139/files#diff-4058974ed1ff8fbb817967ab294ee5a8b422543b015c50cf3481cc2fddffbe0cR119-R126
I'm using it for a component audit (in combination with
LayoutPreview
) but presumably it's handy for the tile renderer too.Notes:
@DrawableRes
to the functionThe text was updated successfully, but these errors were encountered: