How to add text to image in grid view?

旧巷老猫 提交于 2019-12-25 06:03:54

问题


well i have gridview , which pulls the images from server & display it in gridview, i want to add related text to each image.it must look like the below image. How to achive that ?


回答1:


in order to fill a GridView you got to create an item(Xml layout); then in the adapter you'll got to inflate it and fill it up; so you are able just to create a FrameLayout with an image and a textView with gravity bottom and background #66666666 where #AARRGGBB AA-is an alfa chanel(transparecy);



来源:https://stackoverflow.com/questions/16869403/how-to-add-text-to-image-in-grid-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!