Android中的自定义图库缩略图 [英] Custom Gallery Thumbnails in Android
本文介绍了Android中的自定义图库缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
感谢阅读!
我正在使用Android Gallery教程,想知道是否可以自定义画廊的缩略图>例如:在图像上显示标题?
I am using the Android Gallery tutorial and wondering if there's a way to customize the thumbnails of the gallery> For eg: Display caption ON the image?
谢谢!
推荐答案
尝试了此处建议的所有方法之后,我仍然无法以自己想要的方式获得自定义图片库.我一直遇到ClassCastException
.所以,这是到目前为止对我有用的东西. 这只是一种解决方法,以防万一有人想出一种更好的方法来设计自定义画廊-请在此处发布您的答案,以便我接受.
After trying all approaches suggested here, I wasn't able to still get a custom gallery the way I wanted it to. I kept running into ClassCastException
. So, here's what worked for me till now. This is just a workaround and incase someone comes up with a better way to design a custom gallery - do post your answer here so I can accept it.
感谢您的帮助!
这篇关于Android中的自定义图库缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文