Android Question Delete view without using designer

D

Deleted member 103

Guest
You can not delete a view, you can only remove it from the Parent or make it invisible.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Hello,

Recently I asked how to create imageview(for example) without using the designer.(https://www.b4x.com/android/forum/threads/problem-creating-imageview.97448/)

Does anybode know how to delete view(for example imageview) also without using the designer?

Thanks in advance.
As @Filippo pointed, in android you cannot delete a view (OS normal way of doing things). what you can do is remove a view from its parent. You can then either re-use that view by adding it to a new parent, or let it sit. eventually Android itself will take care of "trashing" the allocated resources.
 
Upvote 0

Almog

Active Member
Licensed User
You can not delete a view, you can only remove it from the Parent or make it invisible.
As @Filippo pointed, in android you cannot delete a view (OS normal way of doing things). what you can do is remove a view from its parent. You can then either re-use that view by adding it to a new parent, or let it sit. eventually Android itself will take care of "trashing" the allocated resources.
Thank you :)
 
Upvote 0
Top