Created
August 11, 2022 14:16
-
-
Save SerggioC/5f26c24c8b7520c17a494b095d74ca1f to your computer and use it in GitHub Desktop.
get Uri from Android assets file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uri fontUri = new Uri.Builder() | |
.scheme(ContentResolver.SCHEME_ANDROID_RESOURCE) | |
.authority(BuildConfig.APPLICATION_ID) | |
.path(String.valueOf(R.font.roboto_regular)) | |
.build(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment