How to add text to image in grid view?

2019-09-16 17:08发布

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 ?

enter image description here

1条回答
贼婆χ
2楼-- · 2019-09-16 17:27

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);

查看更多
登录 后发表回答