Enlarge the image full screen in a dialog

All your problems with Audio, Video and Images.

Enlarge the image full screen in a dialog

Postby sangio » Mon Nov 01, 2010 1:40 pm

Good morning everyone.
I click on an image to which event I would like to associate the opening of a dialog (or toast if possible) to make me see the larger picture.

Does anyone have an idea. For now I am only able to handle the onclick on each element of the listview by displaying a simple toast.
Now I want to handle the onclick on the images of this listview.

Code: Select all
    AdapterView.OnItemClickListener mItemListener = new OnItemClickListener() { 
            public void onItemClick(AdapterView parent,View v,int pos,long id) { 
                String st = "Clicked POS="+pos+" ID="+id; 
                 Toast.makeText(getApplicationContext(),st,Toast.LENGTH_SHORT).show();   
              } 
         };     
        ((ListView)findViewById(R.id.productsLv)).setOnItemClickListener(mItemListener); 


Thanks at all.
sangio
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Nov 01, 2010 1:34 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Google [Bot] and 22 guests