我想要做以下事情:
我想制作一个非常简单的图库应用程序。所以我想选择一条图片路径并将其设置为资源。我在String.xml中设置它。
因此,我有另一个类,需要选择的路径来从中加载所有图像。
class ImageHolder
{
public ImageHolder()
{
this(R.string.image_dir);
//problem is here - R.string.image_dir returns a unique int, while what I really need is the string. How can I get it...
}
public ImageHolder(String path)
{
.........standart procedure.....
}
}