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 ?
Asked
Active
Viewed 1,746 times
0
-
9you need to create a custom "grid view item" layout for grid view and apply that custom layout item to your adapter of grid. – Chintan Rathod Jun 01 '13 at 05:25
-
1This could be of help: http://stackoverflow.com/q/14808997/450534 – Siddharth Lele Jun 01 '13 at 05:28
-
1First of all, What have you tried? Show us your homework which you have done if any. – Paresh Mayani Jun 01 '13 at 05:31
-
1Second,its custom GridView with Image and Text. Check: [Android – GridView example](http://www.technotalkative.com/android-gridview-example/) – Paresh Mayani Jun 01 '13 at 05:31
-
is adding text on your image solves your problem? – R9J Jun 01 '13 at 06:18
-
i'm able to load the images,just i want to append text to each image. – Uday Jun 01 '13 at 07:12
-
this link will help you : http://stackoverflow.com/questions/17145819/how-to-show-text-on-image – Arash Oct 04 '13 at 20:40
1 Answers
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);

Alex
- 1,416
- 1
- 14
- 24