How to get the position of listview with custom Ad

2019-08-29 08:14发布

问题:

I am developing an Application.

My Layout Screen is as below:

In that I had Used horizontal Listview for Images.

My requirement is:

When I click on Preview Button the image which are currently displaying on screen should pass to another Activity as a URL. but how it can be possible I have really no idea.

回答1:

Where is your image stored? in the resources folder in your device? On Internet? Why you need to pass it as a URL?

There are different ways. Sending intents with extras may do the trick. You can put the URL as a String or pass the location of the image also as String.

Anyway add more information about the layout and I could update my answer to give you more advices.