android-how to put the text on the image in gridview - android

In my application, I'm using a gridview to display images, but I want to display the text on the images. Is this possible? If so, how can I implement it?
Thanks.

Just give you a hint.
You must have seen "hello gridview" here: http://developer.android.com/resources/tutorials/views/hello-gridview.html
You just need to get a custom view (may be a LinearLayout) instead of a imageview in getview() in adapter.
Hope this help.

Related

image with text in gridview android

I am developing application which havely based on images. I am displaying these images in GridView like this picture.
But i want to make this text and image in together like following picture.
One solution is that Create an image with text together and display in gridview but it does not look clean solution. Kindly guide me, If android provides some nice and clean solution for this.
A GridView extends from AdapterView. An AdapterView is a view whose children are determined by an Adapter. An AdapterView uses a the getView() method to retrieve currently shown items.
You can customize this getView() method to return any kind of View.
e.g. a Relative Layout
This Relative Layout can contain an ImageView and a TextView
I hope this makes sense, if not comment below

Advice on creating a menu (image attached)

Below is an image of GPS Essentials app, which I guess a lot uses.
I am interested in making a menu similar to this. How is such a menu (or what ever it is called) created.
My first thought was to use a ListView having elements containing an image and text-view in vertical orientation. But then I was wondering if there is any better, preferably an easier way to do it.
I would be very greatful if you could share your experience with me. Thank you.
GridView is the solution exactly. You have to actually define a custom adapter for the GridView.
Why custom adapter? Because you have to inflate a custom row (having ImageView and TextView) to every item in your GridView.
Hint: Search for the example with word "Android Gridview example", you will get many articles/tutorials.
use GridView. You can find documentation here http://developer.android.com/resources/tutorials/views/hello-gridview.html

How to create custom gallery view and zoom?

How to create own Gallery View?
i want to view multiple images and scroll.
Thank you,
Rajesh Patil
As I understand correctly you need to create your custom Gallery view. You need to extend it from AdapterView. There is a great example of how to do that, but in custom ListView interpretation by SonyEricsson. You may use it to figure out how to create custom Gallery

How to create list of horizontal image galleries in a vertical Listview in android..?

Thanks in advance..
I have a task like creating list of image (Horizontal)galleries in an vertical listview in android.
I spend so much time but i didn't get any idea on that.
For the required screen please check the link as a reference :
http://www.appbrain.com/app/pulse-news/com.alphonso.pulse.
So please help me by providing the logic..
When you create an Adapter for your ListView, you can specify a row layout containing any views you like. I think, you can create a row layout containing a Gallery view too. Hope this helps.

Android - Display Image Caption Below Images in Gridview

I am utilizing a version of the "Grid View" example from the Android Developers site:
http://developer.android.com/resources/tutorials/views/hello-gridview.html
And I would like to display a small text caption below each of the images.
Can someone please give an example of how this might be accomplished (i.e. what needs to be edited)?
Thanks!
Instead of an ImageAdapter returning ImageViews from getView(), you would need a TylerAdapter returning a LinearLayout or RelativeLayout for each cell, with the layout containing your ImageView and TextView caption.
Here is a free excerpt from one of books that illustrates stuff like this, albeit in the context of a ListView instead of a GridView. Those are both AdapterViews, and so the techniques are nearly identical.

Categories

Resources