Android 如何从String路径获取Drawable?

Posted 王睿丶

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android 如何从String路径获取Drawable?相关的知识,希望对你有一定的参考价值。

image.setImageResource(getResources().getIdentifier("houselocal_oneroom_first_1","drawable", getPackageName()));

参考:https://www.codenong.com/46829973/

以上是关于Android 如何从String路径获取Drawable?的主要内容,如果未能解决你的问题,请参考以下文章