Coder Social home page Coder Social logo

conductor-dialog's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

conductor-dialog's Issues

Readme

Hey,

Are there any plans of adding a readme for this?

BottomSheetDialog

I am surprised no one needed bottomsheet in conductor apps. Do you have any plans implementing it?

View under Dialog removed?

Hi, using dialpg controller via router.pushController, opens up screen woth dialog but removes the view underneath.

Is this as indended? If so, kind of beats the purpose of dialogs

Also

Since is a whole new controller, how can I pass a listener to the caller controller?

thamks

Custom Dialog

Hi, a really nice piece of code. I'd like to know how can I create a custom Dialog. I was looking for the demo and I saw just a classic alert. So, is it possible to use that?

View state of dialog saved but never restored

Hi,
restoring state of controller works (i.e. after rotation dialog stays (comes up again) shown)

However if I put a view inside my alert dialog (usecase: title, edittest, cancel button, ok button)
then the text inside edittext is not restored after config change. DialogFragment does this, so I presume this is a bug

I looked around the source and the problem seems to be that you do save the dialog instance state at line 237. However you never restore it. Looking at the DialogFragment is should be after the

dialog.setOwnerActivity(getActivity()); dialog.setCancelable(cancelable); dialog.setOnShowListener(this); dialog.setOnCancelListener(this); dialog.setOnDismissListener(this);

combo of setters.

I would restore it myself, but you made onBindView private and onCreateView final

(Btw looking around with debugger, onRestoreInstance state was never called for me after rotations, is this also as designed?)

Workaround for now is to manually do it via

override fun onRestoreViewState(view: View, savedViewState: Bundle) {
       super.onRestoreViewState(view, savedViewState)
       editText?.onRestoreInstanceState(savedViewState.getParcelable("foo"))
   }

   override fun onSaveViewState(view: View, outState: Bundle) {
       super.onSaveViewState(view, outState)
       val foo = editText?.onSaveInstanceState()
       if (foo != null) {
           outState.putParcelable("foo", foo)
       }
   }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.