如何获得与R.Drawable图像列表 [英] How to get list of image with R.Drawable

查看:184
本文介绍了如何获得与R.Drawable图像列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了创建一个瓷砖管理系统我有图像的包在我RES /绘目录。如何动态地加载的ressource?

In order to create a tile management system I have a pack of image in my res/drawable directory. How to load that ressource dynamically ?

这样的: F_16.0_0_112.jpg。 (F _+ ZOOM+._+ XCOORD +_+ YCOORD.JPG)

有没有像getDrawable(String)将fonction?

Is there a fonction like getDrawable(String) ?

推荐答案

在这个链接,你会发现这样做的两种方式:

On this link you will find two ways of doing this:

http://daniel-$c$cs.blogspot.com/2009/12/dynamically-retrieving-resources-in.html

这篇关于如何获得与R.Drawable图像列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆