Giter Site home page Giter Site logo

RxDialog oneliners about rxbinding HOT 4 CLOSED

jakewharton avatar jakewharton commented on June 17, 2024
RxDialog oneliners

from rxbinding.

Comments (4)

dlew avatar dlew commented on June 17, 2024

My two cents: out of scope for this library.

To me, it seems like a fairly large task to make a proper Rx dialog library. There's a lot of depth to dialogs, if you're dealing with them in a general sense, since you can do just about anything with them - they're just floating windows.

from rxbinding.

pakoito avatar pakoito commented on June 17, 2024

Okay, assume my pitch is out and I put my weekends on another library. What does a proper stock Rx dialog library need? So far I have listeners for each of the mentioned types, and styling is still done at theme level. Rotation has to be handled outside the library.

from rxbinding.

dlew avatar dlew commented on June 17, 2024

I do so many crazy things with dialogs that I don't think a library could ever cover all the use cases. E.g., some dialogs have custom layouts inside of them which have lots of logic/control outside the bounds of any normal dialog listener.

If I were to make a library I'd make it tightly focused on some very common use cases, such as displaying a title/message/buttons. Once you start expanding beyond that (into things like adapters and custom views) it gets a lot more complex.

from rxbinding.

pakoito avatar pakoito commented on June 17, 2024

Yes, if you want the custom ones. I was thinking something more generic for those cases, with stock UI components like a simple picker. Without styling and only allowing changes to icon, title, message, and elements or boundaries; most of them are trivial to wire.

http://developer.android.com/images/ui/dialogs.png

http://developer.android.com/images/ui/dialogs_regions.png

http://developer.android.com/images/ui/dialog_checkboxes.png

http://developer.android.com/images/ui/dialog_custom.png

http://developer.android.com/images/ui/pickers.png

http://i.stack.imgur.com/k5xNW.png // Can also be done with arbitrary string values

from rxbinding.

Related Issues (20)

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.