Hi all,
I may have overlooked something obvious, but I've run into a problem with using a TabHost.
I want to add a canvas to each panel that is linked to the TabHost, but when I initialise the canvas naming one of the linked panels I get a Java exception at runtime.
I tried to create a new panel that would sit over the top of the same area as the linked panels, but couldn't work out how to provide the AddView with the correct coordinates and width/height. I get a run time error if I try and use a linked panel's top/left/width/height properties.
I have done it successfully using the TabHost properties, but of course this includes the tab area of the view, that I don't want to have the canvas write over.
So, how can I either use one of the existing linked panels (the preferred option), or determine the "working" area of the TabHost (without the tab area) so I can use another panel the correct size?
Thanks.
I may have overlooked something obvious, but I've run into a problem with using a TabHost.
I want to add a canvas to each panel that is linked to the TabHost, but when I initialise the canvas naming one of the linked panels I get a Java exception at runtime.
I tried to create a new panel that would sit over the top of the same area as the linked panels, but couldn't work out how to provide the AddView with the correct coordinates and width/height. I get a run time error if I try and use a linked panel's top/left/width/height properties.
I have done it successfully using the TabHost properties, but of course this includes the tab area of the view, that I don't want to have the canvas write over.
So, how can I either use one of the existing linked panels (the preferred option), or determine the "working" area of the TabHost (without the tab area) so I can use another panel the correct size?
Thanks.