Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image to cell instead of string #14

Closed
alchemistgo87 opened this issue Apr 15, 2013 · 3 comments
Closed

Add image to cell instead of string #14

alchemistgo87 opened this issue Apr 15, 2013 · 3 comments
Labels

Comments

@alchemistgo87
Copy link

Can i add an image as data in the cells instead of adding a text?

@BraisGabin
Copy link
Collaborator

Of course, you can add any view. An ImageView or a very complex FrameLayout with subviews.

@taufiqal
Copy link

taufiqal commented Mar 21, 2017

Sorry , can i know how to add the image with the code is convertView = new TextView(context);

@BraisGabin
Copy link
Collaborator

That's just an example. You can use an inflater to inflate any view. Or create an ImageView directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants