problen in displaying the text and image in gallery using Android
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
gallery = (Gallery) findViewById(R.id.gallery1);
imgView = (ImageView)findViewById(R.id.ImageView01);
imgView.setImageResource(Imgid[0]);
tv = (TextView)findViewById(R.id.name);
// tv.setImageResource(Imgid[0]);
final ArrayList searchResults = GetsearchResults();
gallery.setAdapter(new Adapter(this, searchResults));
gallery.setAdapter(new AddImgAdp(this));
gallery.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView parent, View v, int position, long id) {
imgView.setImageResource(Imgid[position]);
Toast.makeText(getBaseContext(), "You have selected picture " + (position+1) + " TEXT",
Toast.LENGTH_SHORT).show();
}
});
View Answers
Ads
Related Tutorials/Questions & Answers:
Advertisements
Image is not displaying
Image is not displaying Hii i am
using spring javamail with html template to send mail,i am facing that
image displaying prob when mail have to cm in gmail,in template just i am giving my current location of
image which
Image Gallery
Image Gallery Hello:
I am working on a website for a customer and am having an issue with the
image gallery.
The goal is to create multiple categories with an
image gallery for each.
For example,the wedding
gallery
Saving image and text in mysql db using spring?
Saving
image and
text in mysql db
using spring? Hii,
My requirement is to save the employee details(including
image) into mysql db.i want to save the
image location in db .And actual
image(binary formate) should save
displaying image
displaying image how to upload
image and retrieve it form database mysql in php?
Here is an example of uploading
image using php.
1)form.html:
<form method="post" enctype="multipart/form-data" action="upload.php
Image Gallery
Image Gallery Hello Rose: I am working on a website for a customer and need your guidance. The specific piece of the site is an
image gallery... within each
image window. As it stands all of the images from each group pull from
Text Editor Image upload
Text Editor
Image upload how to browse an
image from
text editor instead of giving url of particular
image using javascript
How to write text on image
How to write
text on image hi,
I am
using the Jmagick library. I want to write
text on
image, how is it possible ?
Thanks.
hi,
I am new in Jmagick but, I used the following code and it might also help you
Displaying java.util.Calendar using JSP struts tags
Displaying java.util.Calendar
using JSP struts tags My question is in regard to
displaying a date whose source is java.util.Calendar and not java.util.Date. In all the examples I have found they only refer to the java.util.Date
insert image using hibernate
insert
image using hibernate Sir,
Today I hadposted question regarding upload
image, th answer you had given is
using SQL, but I am
using Hibernate to insert data in the same table where I want to insert
image.
Plz hlp me
Image using Java coding
Image using Java coding Hai,
Display
image in pdf file
using Java coding through Xsl file.. Please help me.. xsl file generate the pdf file
display image using jsp
display
image using jsp display
image using jsp and phonegap on emulator of eclipse
Here is a simple jsp code that displays an
image on browser.
<%@ page import="java.io.*" %>
<%@page contentType="
image/gif
Displaying images using Javascript
Displaying images
using
Javascript... to display images
using javascript and css.For this we are going to make program named
image-slideshow-5.
css,
image-slideshow-5.html,
image-slideshow-5.js.The code
highlight words in an image using java
highlight words in an
image using java Hai all,In my application left side
image is there and right side an application contains textboxes like... want to highlight name in the
image using java/jsp/javascript.please help me