[mono-android] Using multiple layouts
Tomasz Cielecki
tomasz at ostebaronen.dk
Sat Nov 5 10:40:35 EDT 2011
Hey Paul,
You should be able to set the Enabled property on a tab.
So when the app starts you have the tabs shown but they are disabled, and
when the data arrives to the application you can enable them from your
logic by getting the TabHost somehow and telling it to enable the tabs.
I.e.:
TabHost.GetChildAt(index).Enabled = false;
You can get the tabhost from an activity inside one of the tabs by getting
the parent.
TabHost tabhost = ((TabActivity)this.Parent).TabHost;
Hope this helps you.
On Nov 5, 2011 1:47 PM, "Paul Johnson" <paul at all-the-johnsons.co.uk> wrote:
> Hi,
>
> I have a tabview app which is nearly finished now (it's a port of a
> winform app which works fine, so most of the legwork has already been
> done). Each tabview has it's own layout though (for example, one only has
> drop down lists and another only has mostly time/date selectors while the
> third is just for results.
>
> I've got two questions - first is can I disable a tab until the data
> needed has been entered completely entered on the first and second tabs and
> second, do I use two xaml files for the different tabs or can I do it on
> one? If I can do it on one, is there anything special I need to do to
> define the differing tabs?
>
> Thanks
>
> Paul
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111105/a88a742a/attachment.html
More information about the Monodroid
mailing list