Java Question How to work with DialogFragments?

Discussion in 'Libraries developers questions' started by DonManfred, Mar 22, 2015.

  1. DonManfred

    DonManfred Expert Licensed User

    i have done a wrapper for a calendar date picker and time picker. Both are extending DialogFragments.
    I get not rid out of it on how to use (call the dialog-fragment) this in the library.

    Is there any example library (incl java source) which is using a FragmentManager? It seems that i need to implement this...

    Any hints on where i should search. Or even better any links to source to have a look at. ;)

    Who wrote the Dialog library? @Erel ?

    PS: This is how it will look like when i get this running. The Calendar will be scrollable (up/down)
    DialogFragmentCalendar001.png DialogFragmentTime001.png DialogFragmentTime002.png
     
    Last edited: Mar 22, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    Agraham wrote it. It is based on B4A msgbox implementation.

    GoogleMaps library uses FragmentManager. It is attached.
     

    Attached Files:

    DonManfred likes this.
  3. DonManfred

    DonManfred Expert Licensed User

    Thank you erel.
    i think the source of MyMapFragment.java will be needed here. Is the complete source available somewhere?
    The code you posted just "use" the MapFragment but it does not show how the Fragment is implemented.

    But i will try to get inspired by this. Someone in my brain is saying "Have a deeper look at it; it may be the right step to the solution" ;)
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes, it is in the same file (a static class).
     
  5. DonManfred

    DonManfred Expert Licensed User

    got it. I should carefully see the code :-( lol
     
  6. jahswani

    jahswani Active Member Licensed User

  7. DonManfred

    DonManfred Expert Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice