I need to change the toprightbutton icon I wrote the code below but it gives the error below at btnlist.set().Can someone help change the icon in run time? btnlist have 2 items Am trying to change the 2nd item. When i Log btnlist.isreadonly it shows true,I dont know why the array is readonly
B4X:
Dim btnList As List = contestImages.TopRightButtons
Dim btn As BarButton
btn.InitializeBitmap(LoadBitmap(File.DirAssets,"ic_dashboard.png"),"changeview")
btnList.Set(1,btn)
contestImages.TopRightButtons = btnList