Last active
September 12, 2017 06:33
-
-
Save jumbo-in-Jap/c38623cec56cfd7a31019addd708b365 to your computer and use it in GitHub Desktop.
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
// 画像:resourcesからidを指定して取得する | |
val drawable = ResourcesCompat.getDrawable(resources, R.drawable.icon, null) | |
// リソース:同様 | |
val text = context.resources.openRawResource(R.raw.text_file) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment