Last active
August 29, 2015 14:25
-
-
Save fatorx/fde54db90e95aaadee47 to your computer and use it in GitHub Desktop.
Acessar recursos do Android como uma URI
This file contains hidden or 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
/* | |
Em alguns casos, no do lib de carregamento de imagens Fresco (http://frescolib.org/), é necessário | |
utilizar uri's. Para carregar um recurso local como um URI, segue trecho de código. | |
*/ | |
Uri path = Uri.parse("android.resource://com.yourdomain.yourapp/" + R.drawable.ic_notif_single_tick); | |
/* | |
Onde com.yourdomain.yourapp é o pacote de seu aplicativo. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment