Android Question Remove panel from activity

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

I have a panel with mapfragment view inside. Panel name is PanelMap.

Panel created with visual designer.

I want to remove this panel from Activity and add Scrollview with code

I got error On line
B4X:
PanelMap.RemoveView

Error is "android.content.res.Resources$NotFoundException: Unable to find resource ID #0x2711"

any help ?
 

mangojack

Expert
Licensed User
Longtime User
try Activity.RemoveViewAt(Index)

If you added the panel with visual designer , Index should follow the View Tree order for Activity views. 0 to number views
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…