Android Simple Gallery Focused Item Issue - android

I have a gallery that I use to display some ImageViews. I'd like to know which image in the gallery is currently highlighted/focused.
So far, setOnItemClickListener only fires if I actually click on the images. If I scroll through the images, a new image takes focus. I want to know which image that is.
How can I do this?

Get the images number in the list
Get the image (view) it self

Related

Lazyloading like googlenewstand app

I am currently doing a project which needs to load images in a listView with some text from web.I am using universal image loader library,every thing work fine images are loading perfectly without any problem, but my requirement is that if there is no image in a specfic url, i dont want to show that image view in the listview row.which is similer to the news stand app of google.
in the above screen of the newsstand app if there is no image the imageview is not shown and the text will fill to the total width of the cell or row in the listview.How can i achieve this requirement.i have goggled but did not get any right solution or clue to fix this issue,can any one give any snippet or any idea to sort out this issue.
Thank you
In your adapter, when you call the library to display the image, if there is no image url just set the visibility of your ImageView to GONE (and VISIBLE again when there is an url).
If you want to wait that the image is completely loaded to make the ImageView visible, you'll need to register a loading listener. See here.

How to Drop image over image view using fingure touch

I am very much new this issue.I want to make application like this.look at the image below,This is a brief summary of my requirement.
ok so top there is a image view.After user capture image from camera in OnActivityResult I am displaying captured image on main image view. Below that image view there is a HorzontalScrollView, Inside HorzontalScrollView i have put couple of images,like hat,spects etc...
ok so What i want is, user should be able to drag any image from HorzontalScrollView and can be able to put that small image on main image view.
Any guide/tutorial will be appreciated from guys who have worked on such functionality
Thanks

listview scrolling with images

In my app,i have a listview with image and text.when the user clicks in the listview,the image in that row will change.the problem is when user scrolls the listview.the changed image is not showing.but later it is appearing...please provide me a solution or code to avoid this.
thanks in advance..
What's the size of the images that are used for each item in the listview.
When scrolling the image needs to be redrawn and if the images are of a larger size it can take time to redraw.
Make sure the images are only as big as they need to be for the item

How to make Gallery with slide show in Android?

I want to make a Gallery View with slide show and image zooming(as the default gallery in android). I started with implementing ViewFlipper. I have added ImageView to ViewFlipper in runtime. But it takes very long time to load large number of images initially. And i couldn't make image zooming. Can anyone provide good solution take make an efficient gallery view with slideshow and image zooming??

adding flickr pictures to android gallery and display it

I am new to android, I have learned how to display drawable pic in gallery,
and display a url pic use ImageView. Now I dont know how to display online pictures in gallery. Should I use listview or not? In addtion, I want to know how to get pictures urls from flickrs with given userid
Do you mean like a photo gallery? is that what your app is supposed to do? Then, yes you could use a ListActivity/ListView. However i do not know if this will provide you with exactly the effect you want. A list view would load ALL of the pictures before the UI could be displayed and you would view them by scrolling. typically a photo viewer shows pictures full screen and switches with either a button or a swipe (gesture).
To get the latter effect, your app could display an ImageView with the first pic while it loads the next pic, and then switch to a new ImageView when the user clicks a button or swipes. this will prevent your app from eating up resources and will give you an interface that people are more used to.
as for flickr, you will have to ask someone else (you should separate these into two separate questions because they are so different)

Categories

Resources