I need help in list view

I am making app like WhatsApp

The message will show in list view

I want to make a copy button that will copy last message but in my block
desine It Copy all message

I am using puva Vida extension

,

Knowing that Selection Returns the text in the ListView at the position of SelectionIndex.

and that the most recent item in the ListView is the first item (the most recent item in your ListView, depending on how you code and enter your messages in the list that populates the ListView ** ) might** allow you to do what you want. What have you tried?

Here are some resources to help you learn to use the AI2 tools. A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.

There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles

How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also look here App inventor español. Offline. Tutorial. Ejemplos. Instalación. Códigos. Juegos. Curso gratis de App inventor. and here Tutorial Index | imagnity for more tutorials

Learn about components Component Reference
and visit the Library The MIT App Inventor Library: Documentation & Support Help>Library on the MENU

First, get this clipboard extension from Pura Vida Apps to copy the text.

Then add these blocks:

I want to make a copy button that will copy last message but in my block
desine It Copy all message

Sounds like you are putting all the messages into one element of the listview

1 Like

You do not need to copy the last item in your ListView using an extension. :cry:

Try this instead to copy to a Label (or any other component that accepts text)

1 Like

Could you share an .aia of your project? There could be an issue when the user submits his message or when loading the message list.

Yes

I need a help

I am finding a extrension that is a list view with extra options

The option is --use las element
I have a edited picture I need that

1 Like

Here you can find all extensions available. Yours will be there

where the elements come from? a list? then use the native block of List.

why don't you use, select list item list (source list) index (length of the source list).. ?

1 Like

Plese give me the extension

That is edited :rofl:

sorry, there is no extension to give you the last element of a list, this is the correct answer to get what you need

and learn to work with lists

Taifun

1 Like

Actually it makes no sense so. since it can be achieved by simple default block, there is no need of extension for that . Please refer the @Taifun reply to understand better the lists

In your function to add the message to the list, do you use "append value to list" block? Agagin, could you share an .aia of your project? In the project, click Projects > Export selected project (.aia) to your computer. You can then use Google Drive, Dropbox, OneDrive, or Internxt Send to get a URL to paste here.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.