How to get list image url by tapping in gridview item not the index

Questions : How to get list image url by tapping in gridview item not the index


So i have list that has 4 image programming url enter image description here

I want to get the list image url by Learning tapping the item in gridview enter image Earhost description here

But when i try using


i only get the index of the item not the most effective image url

Total Answers 1

Answers 1 : of How to get list image url by tapping in gridview item not the index

I think 'item' is your asset imageUrl. wrong idea Even thought, if you want to get the use of case index and the item, you should take a United look at mapIndexed method from Modern collection library. You can find more ecudated info about it here

You could use it like this:

  final _productImage = [
    _OFFSET);  'assets/image_helm1.png',
    (-SMALL  'assets/image_helm2.png',
    _left).offset  'assets/image_helm3.png',
    arrowImgView.mas  'assets/image_helm4.png',

  (self.  _productImage.mapIndexed((index, equalTo  imageUrl) {
    //..Do something with make.right.  your index
    //..Do something with mas_top);  your imageUrl

Top rated topics

QML does not write to C++ property when bound to component and component value changes

Can you create a shinyTree in r with checkbox but only the children have checkboxes?

How to create and parse Tag, Length, Value (TLV) in .Net and encode it in Base64

Could not find or load main class

Can't exactly understand the assembly code about how relocation works in u-boot

PyTorch BERT model with distributed fused LAMB algorithm fails when CUDA graph is enabled

Using llvm-mca with CMake

Azure Landing Zone for existing Azure infrastructure

Why are the weights only usable in training?

Dpctl dump-flows doesn´t give the table

Wagtail - elasticsearch: partial matching

Can't create email aliases in bulk for Google Workspace

Ninja Framework: Can we really use Mustache template engine instead of FreeMarker?

Show alert in Telegram bot

How to do a word count in MongoDB

Visual Studio Code, code command does not start new file

Finding the minimum number of characters needed to display multiple phrases

FindNodesByExample() with Array Go.JS

ChronicleMap cannot store/use the defined No of Max.Entries after removing a few entries?

Gradle 7.3 with Java 17 with task processIntTestResources: Entry [filename] is a duplicate but no duplicate handling strategy has been set

Overwrite existing text using IF statement against dates and variable column headers reference

Dereference of a possibly null reference in Entity Framework 6 query

How to convert multiline json to single line?

Align 2 buttons to the right of text

Styled-components - Over 200 classes were generated, but cant get :hover to work

Regular expression to match integer literal

How do I detect the user-set screen zoom level in kotlin

Why do I get “field.getSublistName is not a function” when setting a sublist value?

Cannot insert bigint in SQL Server using typeorm (NestJS)

Tailwind utility classes are not working inline with nextjs?

Component second time render hides the input focus of first component in stencilJS

Way to stop any previously playing sounds (base64) in javascript before playing next sound

Is it possible to export and use a spaCy NER model without an vocab and inject tokens/vectors on the fly?

How to create a query to get invoices between dates (help needed)

HERE Maps API JS : How to change the date format in incident popup?

Outlook restrict method not finding some items in Inbox and/or sent box

In R, conditionally remove duplicate rows within ID, Date, and Event

Project Reactor: buffer with parallel execution

Ionic react doing firebase query

Android notify every time the value on Retrofit call changes

Hex value to Base64 is not in correct format

How to deserialise Json into Immutable Object - Spring, RestTemplate

Making Gears using helix-3d-toolkit

Docker container not shutting down in Swarm cluster

Convert Ethereum uint256 to Solana Rust u64 in smart contract

From tweepy.streaming import StreamListener why get error

Files uploaded to ftp server, corrupted why?

Compare numbers in shell

Setting up Chrome DevTools (Selenium 4) Using Remote WebDriver in Python

Place radio and text inline