更新时间:2023-09-25 15:39:52
要获得特定文件夹中的所有文件,使用的 列表()
-method 的文件
级,其中列出指定目录下的所有文件。
To get all files of a specific folder, use the list()
-method of the File
-class, which lists all Files of the specified directory.
要创建位图(然后可以得出),可以使用 BitmapFactory
级。
To create a Bitmap (which can then be drawn), you can use the BitmapFactory
-class.
在这之后,你需要创建自己的适配器(如图所示连接教程),以显示你的位图。
After that, you'll need to create your own Adapter (as shown in the linked tutorial) to show your Bitmaps.