Android Question Show/hide listview image

vecino

Well-Known Member
Licensed User
Hi, I do not know if it's possible:
When you touch a listview, it shows/hides the image of the item where it was touched.
How can it be done?
Thank you.
 

walterf25

Expert
Licensed User
Hi, I do not know if it's possible:
When you touch a listview, it shows/hides the image of the item where it was touched.
How can it be done?
Thank you.
Please read this tutorial, but what have you tried so far?

ListView Tutorial

Regards,
Walter
 

vecino

Well-Known Member
Licensed User
Then, I was wasting my time with Listview.
I do not know xCustomListview, I'm going to try.
Thanks friends.
 

mangojack

Well-Known Member
Licensed User
Then, I was wasting my time with Listview.
I do not know xCustomListview, I'm going to try.
Thanks friends.
I was bored ... have uploaded a basic example to demonstrate what you are trying to do.

ps: If you have not already done so I would still have a look here as well .. B4X-XUI- xCustomListView ...
 

Attachments

vecino

Well-Known Member
Licensed User
Still, people think they are not getting Free enough from B4X !
What more we want ? I have not found any forum of Android where members are so forthcoming with Free help.
Regards,
Anand
That's true, I do not know any other android forum.
Although I have not needed to look for it either, I have always found help here :)
 

walterf25

Expert
Licensed User
Not with a Listview. Use xCustomListview.
I agree, but I still think he should at least be familiar with the Native ListView before stepping into custom Views.

Walter
 

vecino

Well-Known Member
Licensed User
Thank you, I am familiar with the native listview, for 7 years I have been using B4A, but I need to do what I mentioned earlier, and listview does not do it.
That's why I asked the question, because I prefer to use the native views.
And in this case it seems that a listview can not be used.
 

walterf25

Expert
Licensed User
Thank you, I am familiar with the native listview, for 7 years I have been using B4A, but I need to do what I mentioned earlier, and listview does not do it.
That's why I asked the question, because I prefer to use the native views.
And in this case it seems that a listview can not be used.
I believe it can be done with the native ListView, but it will be much easier with the xCustomListView for sure.

Good luck.
Walter
 

vecino

Well-Known Member
Licensed User
Great, can you help me do it with the native listview?
If possible, I will use listview, instead of xcustomlistview.
Thank you.
 

vecino

Well-Known Member
Licensed User
It is a list extracted from a database with enough rows.
It would be quite inefficient to reload everything every time the user clicks on several items.
Maybe keeping everything in memory.
 

advansis

Active Member
Licensed User
You can also fill a scrollview with images and labels and hide/show the images whenever you click on an item.Problems come if you have to include more than 500/1000 rows in the view (it depends on memory size and CPU speed of your device)
 
Top