xamarin.android - MvvmCross Android Dialog - behaviour of nested RootElements -


i'm confused capabilities of mvvmcross dialog builder code.

i have settingsview inherits basesettingsview.

the following code, on ios, shows dialog single section. when section clicked on, produces panel has section in rootelement:

root = new rootelement("settings") {     new section()     {         (element) new rootelement("location settings")                                   {                                       new section("details")                                           {                                               new entryelement("name", "location name"),                                           },                                   },                            }                    }; 

however, on android, settingsview has same code, when section clicked on, no other panel or view appears. wondering whether possible have sort of "nested view" on android, or whether should creating click handler entry, show entirely new dialog via navigation viewmodel.

interesting, following code produce element when clicked on create brand new dialog has entry in nested rootelement inside of it. however, seems work radiogroups far can tell?

root = new rootelement("settings")         {             new section()                 {             (element) new rootelement("status", new radiogroup(0))                             {                                 new section("status")                                     {                                         new radioelement("on"),                                         new radioelement("off"),                                     },                             },                 }, 

i have looked @ mvx dialog example , viewed n+1 cannot find guidance on whether sort of automatic navigation nested rootelements possible or desirable mvvmcross on android.

thanks,

matthew

i believe inherited monodroid.dialog - https://github.com/kevinmcmahon/monodroid.dialog/tree/lastsnapshot

interesting, following code produce element when clicked on create brand new dialog has entry in nested rootelement inside of it. however, seems work radiogroups far can tell?

i don't think correct - think radiogroups show android popup dialogs enable selection - see implementation @ https://github.com/slodge/mvvmcross/blob/v3/crossui/crossui.droid/dialog/elements/rootelement.cs#l327

there recent code contribution in area in https://github.com/slodge/mvvmcross/issues/392 - i've not looked @ yet.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -