Android Question Show/hide listview image

vecino

Well-Known Member
Licensed User
Longtime 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
Longtime 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
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
You should search the forum for xCustomListView for doing that, you can far far more with it...
 
Upvote 0

vecino

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

mangojack

Expert
Licensed User
Longtime 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

  • CLV Image Example 1.zip
    14 KB · Views: 278
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime 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 :)
 
Upvote 0

walterf25

Expert
Licensed User
Longtime 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
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime 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.
 
Upvote 0

walterf25

Expert
Licensed User
Longtime 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
 
Upvote 0

vecino

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

vecino

Well-Known Member
Licensed User
Longtime 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.
 
Upvote 0

advansis

Active Member
Licensed User
Longtime 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)
 
Upvote 0
Top